WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/10/2010 02:41:51 PM (10 years ago)
Author:
ryan
Message:

Remove old hidden columns usermeta keys. fixes #13783

File:
1 edited

Legend:

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

    r15096 r15187  
    441441        upgrade_290();
    442442
    443     if ( $wp_current_db_version < 15093 )
     443    if ( $wp_current_db_version < 15187 )
    444444        upgrade_300();
    445445
     
    11301130        $wpdb->update( $wpdb->postmeta, array( 'meta_value' => '' ), array( 'meta_key' => '_menu_item_target', 'meta_value' => '_self' ) );
    11311131
    1132     // 3.0-beta metabox changes. can be removed before release (except metaboxorder). // r13551
    1133     if ( ( !is_multisite() || is_main_site() ) && $wp_current_db_version >= 13309 && $wp_current_db_version < 14726 ) {
     1132    // 3.0 screen options key name changes.
     1133    if ( !is_multisite() || is_main_site() ) {
    11341134        $prefix = like_escape($wpdb->base_prefix);
    1135         $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key LIKE '{$prefix}%meta-box-hidden%' OR meta_key LIKE '{$prefix}%closedpostboxes%' OR meta_key LIKE '{$prefix}%manage-%-columns-hidden%' OR meta_key LIKE '{$prefix}%meta-box-order%' OR meta_key LIKE '{$prefix}%metaboxorder%' OR meta_key LIKE '{$prefix}%screen_layout%'" );
     1135        $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key LIKE '{$prefix}%meta-box-hidden%' OR meta_key LIKE '{$prefix}%closedpostboxes%' OR meta_key LIKE '{$prefix}%manage-%-columns-hidden%' OR meta_key LIKE '{$prefix}%meta-box-order%' OR meta_key LIKE '{$prefix}%metaboxorder%' OR meta_key LIKE '{$prefix}%screen_layout%'
     1136                     OR meta_key = 'manageedittagscolumnshidden' OR meta_key='managecategoriescolumnshidden' OR meta_key = 'manageedit-tagscolumnshidden' OR meta_key = 'manageeditcolumnshidden'" );
    11361137    }
    11371138
Note: See TracChangeset for help on using the changeset viewer.