WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15263 r15458  
    153153                                'link_notes' => '');
    154154
    155     $default_links[] = array(   'link_url' => 'http://wordpress.org/development/',
     155    $default_links[] = array(   'link_url' => 'http://wordpress.org/news/',
    156156                                'link_name' => 'WordPress Blog',
    157                                 'link_rss' => 'http://wordpress.org/development/feed/',
     157                                'link_rss' => 'http://wordpress.org/news/feed/',
    158158                                'link_notes' => '');
    159159
     
    11311131
    11321132    // 3.0 screen options key name changes.
    1133     if ( !is_multisite() || is_main_site() ) {
     1133    if ( is_main_site() && !defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) {
    11341134        $prefix = like_escape($wpdb->base_prefix);
    11351135        $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%'
     
    14001400        // For every table in the database
    14011401        foreach ($tables as $table) {
     1402            // Upgrade global tables only for the main site. Don't upgrade at all if DO_NOT_UPGRADE_GLOBAL_TABLES is defined.
     1403            if ( in_array($table, $wpdb->tables('global')) && ( !is_main_site() || defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) )
     1404                continue;
     1405
    14021406            // If a table query exists for the database table...
    14031407            if ( array_key_exists(strtolower($table), $cqueries) ) {
Note: See TracChangeset for help on using the changeset viewer.