| Server IP : 185.252.147.100 / Your IP : 216.73.216.43 Web Server : nginx/1.27.3 System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : mitr ( 1000) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/html/tour.mitrofanov.ru/public/wp-content/plugins/mihdan-index-now/ |
Upload File : |
<?php
namespace Mihdan\IndexNow;
if ( ! defined('WP_UNINSTALL_PLUGIN')) {
exit;
}
include_once(dirname(__FILE__) . '/mihdan-index-now.php');
function crawlwp_lite_mo_uninstall_function()
{
global $wpdb;
$drop_tables[] = "DROP TABLE IF EXISTS {$wpdb->prefix}crawlwp_log";
$drop_tables[] = "DROP TABLE IF EXISTS {$wpdb->prefix}index_now_log";
foreach ($drop_tables as $tables) {
$wpdb->query($tables);
}
$options = [
'crawlwp_general',
'crawlwp_index_now',
'crawlwp_bing_webmaster',
'crawlwp_google_webmaster',
'crawlwp_yandex_webmaster',
'crawlwp_logs',
'crawlwp_version',
'crawlwp_lite_db_ver',
'crawlwp_google_indexing_rate_limit_expiration',
'crawlwp_bing_indexing_rate_limit_expiration',
'crawlwp_yandex_indexing_rate_limit_expiration',
'crawlwp_yandex_find_website_request_error',
];
foreach ($options as $option) {
delete_site_option($option);
}
// ensure leftovers are deleted
$wpdb->query(
$wpdb->prepare(
"DELETE FROM {$wpdb->options} WHERE option_name LIKE %s",
'crawlwp%'
)
);
$wpdb->query(
$wpdb->prepare(
"DELETE FROM {$wpdb->options} WHERE option_name LIKE %s",
'mihdan_index_now%'
)
);
wp_cache_flush();
}
if ( ! is_multisite()) {
crawlwp_lite_mo_uninstall_function();
} elseif ( ! wp_is_large_network()) {
$site_ids = get_sites(['fields' => 'ids', 'number' => 0]);
foreach ($site_ids as $site_id) {
switch_to_blog($site_id);
crawlwp_lite_mo_uninstall_function();
restore_current_blog();
}
}