Permalink
Browse files

Updates delete_option to delete_site_option for Wordpress MU

  • Loading branch information...
1 parent 88e2626 commit 83af36523fa0aee87f3eb996be13a7b91bb1bf36 @cabrerahector committed Oct 5, 2013
Showing with 16 additions and 7 deletions.
  1. +16 −7 uninstall.php
View
@@ -25,26 +25,35 @@
foreach( $blogs_ids as $blog_id ) {
switch_to_blog( $blog_id );
+
+ // Delete plugin's options
+ delete_site_option( 'wpp_ver' );
+ delete_site_option( 'wpp_settings_config' );
+ delete_site_option( 'wpp_rand' );
+ delete_site_option( 'wpp_feed' );
+
+ // delete tables
uninstall();
}
// Switch back to current blog
switch_to_blog( $original_blog_id );
-} else {
+} else {
+ // Delete plugin's options
+ delete_option( 'wpp_ver' );
+ delete_option( 'wpp_settings_config' );
+ delete_option( 'wpp_rand' );
+ delete_option( 'wpp_feed' );
+
+ // delete tables
uninstall();
}
function uninstall(){
global $wpdb;
-
- // Delete plugin's options
- delete_option( 'wpp_ver' );
- delete_option( 'wpp_settings_config' );
- delete_option( 'wpp_rand' );
- delete_option( 'wpp_feed' );
// Delete db tables
$prefix = $wpdb->prefix . "popularposts";

0 comments on commit 83af365

Please sign in to comment.