Score
0
Watch 4 Star 8 Fork 0

JefferyWang / qcloud-cos-supportPHPMIT

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
使用腾讯云对象存储服务 COS 作为附件存储空间的Wordpress插件 spread retract

http://blog.wangjunfeng.com/archives/643

Clone or download
uninstall.php 516 Bytes
Copy Edit Web IDE Raw Blame History
JefferyWang authored 2015-11-13 23:21 . 功能完善
<?php
//防止有人恶意访问此文件,所以在没有 WP_UNINSTALL_PLUGIN 常量的情况下结束程序
if( !defined( 'WP_UNINSTALL_PLUGIN' ) ) exit();
$oss_options = get_option('cos_options', TRUE);
$upload_url_path = get_option('upload_url_path');
$oss_upload_url_path = esc_attr($oss_options['upload_url_path']);
//如果现在使用的是OSS的URL,则恢复原状
if( $upload_url_path == $oss_upload_url_path ) {
update_option('upload_url_path', "" );
}
//移除配置
delete_option('cos_options');

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/wangjunfeng/qcloud-cos-support.git
git@gitee.com:wangjunfeng/qcloud-cos-support.git
wangjunfeng
qcloud-cos-support
qcloud-cos-support
master

Help Search

205735 778617b6 1899542 205747 347fc4a1 1899542