PluginProbe
Simple Ticker / 3.03
Simple Ticker v3.03
trunk 1.0 1.01 1.02 1.03 1.04 1.05 1.06 1.07 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 3.00 3.01 3.02 3.03 All 33 releases
simple-ticker / uninstall.php

uninstall.php in Simple Ticker 3.03, at uninstall.php

31 lines 572 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Uninstall
4 *
5 * @package Simple Ticker
6 */
7
8 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
9 exit();
10 }
11
12 /* For Single site */
13 if ( ! is_multisite() ) {
14 delete_option( 'simple_ticker' );
15 } else {
16 /* For Multisite */
17 global $wpdb;
18 $blog_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->prefix}blogs" );
19 $original_blog_id = get_current_blog_id();
20 foreach ( $blog_ids as $blogid ) {
21 switch_to_blog( $blogid );
22 delete_option( 'simple_ticker' );
23 }
24 switch_to_blog( $original_blog_id );
25
26 /* For site options. */
27 delete_site_option( 'simple_ticker' );
28 }
29
30
31