Make WordPress Core


Ignore:
Timestamp:
02/28/2012 08:13:21 PM (14 years ago)
Author:
nacin
Message:

Do not save the last visited tab on the multisite Network Themes page and Site Themes tab. These are poor UX, see #18810 for plugins. Entering these screens will always default to 'all' themes view. see #20103.

File:
1 edited

Legend:

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

    r19935 r20022  
    460460        upgrade_330();
    461461
    462     if ( $wp_current_db_version < 19799 )
     462    if ( $wp_current_db_version < 20022 )
    463463        upgrade_340();
    464464
     
    12351235        $wpdb->query("ALTER TABLE $wpdb->comments DROP INDEX comment_approved");
    12361236        $wpdb->show_errors();
     1237    }
     1238
     1239    if ( $wp_current_db_version < 20022 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
     1240        $wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key = 'themes_last_view'" );
    12371241    }
    12381242}
Note: See TracChangeset for help on using the changeset viewer.