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:
parent
7252c98c54
commit
e87cac6f06
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue