Make WordPress Core


Ignore:
Timestamp:
03/02/2012 08:13:35 PM (15 years ago)
Author:
nacin
Message:

Don't autoload the uninstall_plugins option. fixes #16741.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r20023 r20080  
    458458                upgrade_330();
    459459
    460         if ( $wp_current_db_version < 20022 )
     460        if ( $wp_current_db_version < 20080 )
    461461                upgrade_340();
    462462
     
    11531153        }
    11541154
    1155         // 3.3-beta. Can remove before release.
    1156         if ( $wp_current_db_version > 18715 && $wp_current_db_version < 19389
    1157                 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) )
    1158                         delete_metadata( 'user', 0, 'dismissed_wp_pointers', '', true );
    1159 
    11601155        if ( $wp_current_db_version >= 11548 )
    11611156                return;
     
    12371232        if ( $wp_current_db_version < 20022 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
    12381233                $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key = 'themes_last_view'" );
     1234        }
     1235
     1236        if ( $wp_current_db_version < 20080 ) {
     1237                if ( 'yes' == $wpdb->get_var( "SELECT autoload FROM $wpdb->options WHERE option_name = 'uninstall_plugins'" ) ) {
     1238                        $uninstall_plugins = get_option( 'uninstall_plugins' );
     1239                        delete_option( 'uninstall_plugins' );
     1240                        add_option( 'uninstall_plugins', $uninstall_plugins, null, 'no' );
     1241                }
    12391242        }
    12401243}
Note: See TracChangeset for help on using the changeset viewer.