PluginProbe
WPOSS阿里云对象存储 / 4.9
WPOSS阿里云对象存储 v4.9
trunk 4.9 5.0
wposs / uninstall.php

uninstall.php in WPOSS阿里云对象存储 4.9, at uninstall.php

23 lines 675 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * 因为默认保留了upload_information 参数,新版本直接以默认值带�
4 �'' ,而旧版本则会使用保留过的数据来改动,因此�
5 �保留这个写法
6 */
7 if(!defined('WP_UNINSTALL_PLUGIN')){
8 // 如果 uninstall 不是从 WordPress 调用,则退出
9 exit();
10 }
11
12 // 恢复初始值
13 $wposs_options = get_option('wposs_options');
14 //
15 update_option('upload_path', $wposs_options['upload_information']['original']['upload_path']);
16 update_option('upload_url_path', $wposs_options['upload_information']['original']['upload_url_path']);
17
18 // 从 options 表删除选项
19 delete_option( 'wposs_options' );
20
21 // 删除�
22 �他额外的选项和自定义表
23