Make WordPress Core

Changeset 19061


Ignore:
Timestamp:
10/25/2011 05:48:09 AM (13 years ago)
Author:
nacin
Message:

Introduce upgrade_330() to clear usermeta keys show_admin_bar_admin and plugins_last_view. fixes #18811.

Location:
trunk
Files:
2 edited

Legend:

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

    r19041 r19061  
    452452        upgrade_300();
    453453
    454     if ( $wp_current_db_version < 11548 )
    455         upgrade_old_widgets_order_array();
     454    if ( $wp_current_db_version < 19061 )
     455        upgrade_330();
    456456
    457457    maybe_disable_automattic_widgets();
     
    11941194            $sidebars_widgets['array_version'] = 3;
    11951195            update_option( 'sidebars_widgets', $sidebars_widgets );
     1196    }
     1197}
     1198
     1199/**
     1200 * Execute changes made in WordPress 3.3.
     1201 *
     1202 * @since 3.3.0
     1203 */
     1204function upgrade_330() {
     1205    global $wp_current_db_version, $wpdb;
     1206
     1207    if ( $wp_current_db_version < 11548 ) {
     1208       
     1209    }
     1210
     1211    if ( $wp_current_db_version < 19061 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
     1212        $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key IN ('show_admin_bar_admin', 'plugins_last_view')" );
    11961213    }
    11971214}
  • trunk/wp-includes/version.php

    r19055 r19061  
    55 * @global string $wp_version
    66 */
    7 $wp_version = '3.3-beta2-19055';
     7$wp_version = '3.3-beta2-19061';
    88
    99/**
     
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 18715;
     14$wp_db_version = 19061;
    1515
    1616/**
Note: See TracChangeset for help on using the changeset viewer.