Don't remember search in last view. see #9527

git-svn-id: https://develop.svn.wordpress.org/trunk@11055 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-22 17:56:38 +00:00
parent 7252c98c54
commit e87cac6f06
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ if ( empty($default_status) )
$status = isset($_REQUEST['plugin_status']) ? $_REQUEST['plugin_status'] : $default_status; $status = isset($_REQUEST['plugin_status']) ? $_REQUEST['plugin_status'] : $default_status;
if ( !in_array($status, array('all', 'active', 'inactive', 'recent', 'upgrade', 'search')) ) if ( !in_array($status, array('all', 'active', 'inactive', 'recent', 'upgrade', 'search')) )
$status = 'all'; $status = 'all';
if ( $status != $default_status ) if ( $status != $default_status && 'search' != $status )
update_usermeta($current_user->ID, 'plugins_last_view', $status); update_usermeta($current_user->ID, 'plugins_last_view', $status);
$page = isset($_REQUEST['paged']) ? $_REQUEST['paged'] : 1; $page = isset($_REQUEST['paged']) ? $_REQUEST['paged'] : 1;