WordPress.org

Make WordPress Core

Changeset 18811


Ignore:
Timestamp:
09/29/11 05:54:05 (3 years ago)
Author:
nacin
Message:

Stop remembering the last viewed plugins screen. Always show all plugins when returning to plugins.php. fixes #18810.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-plugins-list-table.php

    r18319 r18811  
    1313        global $status, $page; 
    1414 
    15         $default_status = get_user_option( 'plugins_last_view' ); 
    16         if ( empty( $default_status ) ) 
    17             $default_status = 'all'; 
    18         $status = isset( $_REQUEST['plugin_status'] ) ? $_REQUEST['plugin_status'] : $default_status; 
    19         if ( !in_array( $status, array( 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'network', 'mustuse', 'dropins', 'search' ) ) ) 
    20             $status = 'all'; 
    21         if ( $status != $default_status && 'search' != $status ) 
    22             update_user_meta( get_current_user_id(), 'plugins_last_view', $status ); 
    23  
     15        $status = 'all'; 
     16        if ( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array( 'active', 'inactive', 'recently_activated', 'upgrade', 'network', 'mustuse', 'dropins', 'search' ) ) ) 
     17            $status = $_REQUEST['plugin_status']; 
    2418 
    2519        if ( isset($_REQUEST['s']) ) 
Note: See TracChangeset for help on using the changeset viewer.