Make WordPress Core


Ignore:
Timestamp:
02/28/2012 08:13:21 PM (12 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/class-wp-ms-themes-list-table.php

    r19712 r20022  
    1616        global $status, $page;
    1717
    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';
    2219        if ( !in_array( $status, array( 'all', 'enabled', 'disabled', 'upgrade', 'search' ) ) )
    2320            $status = 'all';
    24         if ( $status != $default_status && 'search' != $status )
    25             update_user_meta( get_current_user_id(), 'themes_last_view', $status );
    2621
    2722        $page = $this->get_pagenum();
Note: See TracChangeset for help on using the changeset viewer.