WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/24/2010 07:50:55 PM (10 years ago)
Author:
scribu
Message:

On the plugins page, set and at the right time. See #14579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r15521 r15527  
    294294}
    295295
    296 $default_status = get_user_option( 'plugins_last_view' );
    297 if ( empty( $default_status ) )
    298     $default_status = 'all';
    299 $status = isset( $_REQUEST['plugin_status'] ) ? $_REQUEST['plugin_status'] : $default_status;
    300 if ( !in_array( $status, array( 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'network', 'mustuse', 'dropins', 'search' ) ) )
    301     $status = 'all';
    302 if ( $status != $default_status && 'search' != $status )
    303     update_user_meta( get_current_user_id(), 'plugins_last_view', $status );
    304 
    305296$wp_list_table->prepare_items();
    306297
Note: See TracChangeset for help on using the changeset viewer.