WordPress.org

Make WordPress Core

Changeset 14596


Ignore:
Timestamp:
05/13/2010 03:59:17 PM (8 years ago)
Author:
ryan
Message:

Delete more bad screen options from usermeta. like_escape() blog prefix. fixes #13032

Location:
trunk
Files:
2 edited

Legend:

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

    r14485 r14596  
    441441        upgrade_290();
    442442
    443     if ( $wp_current_db_version < 14217 )
     443    if ( $wp_current_db_version < 14595 )
    444444        upgrade_300();
    445445
     
    11371137
    11381138    // 3.0-beta metabox changes. can be removed before release. // r13551
    1139     if ( ( !is_multisite() || is_main_site() ) && $wp_current_db_version >= 13309 && $wp_current_db_version < 14217 )
    1140         $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key LIKE '{$wpdb->base_prefix}%meta-box-hidden%' OR meta_key LIKE '{$wpdb->base_prefix}%closedpostboxes%'" );
     1139    if ( ( !is_multisite() || is_main_site() ) && $wp_current_db_version >= 13309 && $wp_current_db_version < 14595 ) {
     1140        $prefix = like_escape($wpdb->base_prefix);
     1141        $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}%screen_layout%'" );
     1142    }
    11411143
    11421144}
  • trunk/wp-includes/version.php

    r14576 r14596  
    1616 * @global int $wp_db_version
    1717 */
    18 $wp_db_version = 14217;
     18$wp_db_version = 14595;
    1919
    2020/**
Note: See TracChangeset for help on using the changeset viewer.