PluginProbe ʕ •ᴥ•ʔ
WPS Hide Login / 1.3.4.1
WPS Hide Login v1.3.4.1
trunk 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2 1.2.1 1.2.2 1.2.3 1.2.3.1 1.2.4 1.2.5 1.2.5.1 1.2.6 1.2.6.1 1.2.7 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.4.2 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 1.5.2 1.5.2.1 1.5.2.2 1.5.3 1.5.4 1.5.4.1 1.5.4.2 1.5.5 1.5.6 1.5.7 1.6 1.6.1 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.9 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.13.1 1.9.13.2 1.9.15 1.9.15.1 1.9.15.2 1.9.16 1.9.16.1 1.9.16.2 1.9.16.3 1.9.16.4 1.9.16.5 1.9.16.6 1.9.16.7 1.9.17 1.9.17.1 1.9.17.2 1.9.18 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9
wps-hide-login / uninstall.php
wps-hide-login Last commit date
classes 8 years ago languages 8 years ago readme.txt 8 years ago uninstall.php 8 years ago wps-hide-login.php 8 years ago
uninstall.php
41 lines
1 <?php
2 /**
3 * Fired when the plugin is uninstalled.
4 *
5 * @package WPS Hide Login
6 * @author Remy Perona <remperona@gmail.com>
7 * @license GPL-2.0+
8 * @link http://remyperona.fr
9 * @copyright 2015 Remy Perona
10 */
11
12 // If uninstall not called from WordPress, then exit
13 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
14 exit;
15 }
16
17 global $wpdb;
18
19 if ( is_multisite() ) {
20
21 $blogs = $wpdb->get_results( "SELECT blog_id FROM {$wpdb->blogs}", ARRAY_A );
22 delete_site_option( 'whl_page' );
23
24 if ( $blogs ) {
25
26 foreach ( $blogs as $blog ) {
27 switch_to_blog( $blog['blog_id'] );
28 delete_option( 'whl_page' );
29
30 //info: optimize table
31 $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" );
32 restore_current_blog();
33 }
34 }
35
36 } else {
37 delete_option( 'whl_page' );
38
39 //info: optimize table
40 $GLOBALS['wpdb']->query( "OPTIMIZE TABLE `" . $GLOBALS['wpdb']->prefix . "options`" );
41 }