Make WordPress Core

Changeset 18552


Ignore:
Timestamp:
08/16/2011 02:26:59 AM (13 years ago)
Author:
nacin
Message:

Remove beta upgrade code from 3.0.

File:
1 edited

Legend:

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

    r18531 r18552  
    11221122    if ( $wp_current_db_version < 14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false )
    11231123        add_site_option( 'siteurl', '' );
    1124 
    1125     // 3.0-alpha nav menu postmeta changes. can be removed before release. // r13802
    1126     if ( $wp_current_db_version >= 13226 && $wp_current_db_version < 13974 )
    1127         $wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_key IN( 'menu_type', 'object_id', 'menu_new_window', 'menu_link', '_menu_item_append', 'menu_item_append', 'menu_item_type', 'menu_item_object_id', 'menu_item_target', 'menu_item_classes', 'menu_item_xfn', 'menu_item_url' )" );
    1128 
    1129     // 3.0-beta1 remove_user primitive->meta cap. can be removed before release. r13956
    1130     if ( $wp_current_db_version >= 12751 && $wp_current_db_version < 13974 ) {
    1131         $role =& get_role( 'administrator' );
    1132         if ( ! empty( $role ) )
    1133             $role->remove_cap( 'remove_user' );
    1134     }
    1135 
    1136     // 3.0-beta1 nav menu postmeta changes. can be removed before release. r13974
    1137     if ( $wp_current_db_version >= 13802 && $wp_current_db_version < 13974 )
    1138         $wpdb->update( $wpdb->postmeta, array( 'meta_value' => '' ), array( 'meta_key' => '_menu_item_target', 'meta_value' => '_self' ) );
    11391124
    11401125    // 3.0 screen options key name changes.
Note: See TracChangeset for help on using the changeset viewer.