- Timestamp:
- 02/28/2012 08:13:21 PM (12 years ago)
- File:
-
- 1 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();
Note: See TracChangeset
for help on using the changeset viewer.