mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
On the plugins page, set and at the right time. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15527 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -293,15 +293,6 @@ if ( !empty($action) ) {
|
||||
}
|
||||
}
|
||||
|
||||
$default_status = get_user_option( 'plugins_last_view' );
|
||||
if ( empty( $default_status ) )
|
||||
$default_status = 'all';
|
||||
$status = isset( $_REQUEST['plugin_status'] ) ? $_REQUEST['plugin_status'] : $default_status;
|
||||
if ( !in_array( $status, array( 'all', 'active', 'inactive', 'recently_activated', 'upgrade', 'network', 'mustuse', 'dropins', 'search' ) ) )
|
||||
$status = 'all';
|
||||
if ( $status != $default_status && 'search' != $status )
|
||||
update_user_meta( get_current_user_id(), 'plugins_last_view', $status );
|
||||
|
||||
$wp_list_table->prepare_items();
|
||||
|
||||
wp_enqueue_script('plugin-install');
|
||||
|
||||
Reference in New Issue
Block a user