Changeset 20022
- Timestamp:
- 02/28/2012 08:13:21 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r19712 r20022 16 16 global $status, $page; 17 17 18 $default_status = get_user_option( 'themes_last_view' ); 19 if ( empty( $default_status ) ) 20 $default_status = 'all'; 21 $status = isset( $_REQUEST['theme_status'] ) ? $_REQUEST['theme_status'] : $default_status; 18 $status = isset( $_REQUEST['theme_status'] ) ? $_REQUEST['theme_status'] : 'all'; 22 19 if ( !in_array( $status, array( 'all', 'enabled', 'disabled', 'upgrade', 'search' ) ) ) 23 20 $status = 'all'; 24 if ( $status != $default_status && 'search' != $status )25 update_user_meta( get_current_user_id(), 'themes_last_view', $status );26 21 27 22 $page = $this->get_pagenum(); -
trunk/wp-admin/includes/upgrade.php
r19935 r20022 460 460 upgrade_330(); 461 461 462 if ( $wp_current_db_version < 19799)462 if ( $wp_current_db_version < 20022 ) 463 463 upgrade_340(); 464 464 … … 1235 1235 $wpdb->query("ALTER TABLE $wpdb->comments DROP INDEX comment_approved"); 1236 1236 $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'" ); 1237 1241 } 1238 1242 } -
trunk/wp-includes/version.php
r20014 r20022 12 12 * @global int $wp_db_version 13 13 */ 14 $wp_db_version = 19863;14 $wp_db_version = 20022; 15 15 16 16 /**
Note: See TracChangeset
for help on using the changeset viewer.