aliyun-oss-wordpress/uninstall.php

16 lines
355 B
PHP
Raw Permalink Normal View History

2020-03-31 01:15:49 +00:00
<?php
2023-07-25 00:35:48 +00:00
if (!defined('WP_UNINSTALL_PLUGIN')) {
exit;
2023-07-25 00:35:48 +00:00
}
2020-03-31 01:15:49 +00:00
$options = get_option('oss_options', true);
$upload_url_path = get_option('upload_url_path');
$oss_upload_url_path = esc_attr($options['upload_url_path']);
2020-03-31 01:15:49 +00:00
2023-07-25 00:35:48 +00:00
if ($upload_url_path == $oss_upload_url_path) {
update_option('upload_url_path', '');
2020-03-31 01:15:49 +00:00
}
delete_option('oss_options');