From db80f0e778c08f48f923fcde5e5a6b70e2d3cb01 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 22 Apr 2009 17:56:38 +0000 Subject: [PATCH] Don't remember search in last view. see #9527 git-svn-id: http://svn.automattic.com/wordpress/trunk@11055 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugins.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index c91965662a..60a28cfeb5 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -26,7 +26,7 @@ if ( empty($default_status) ) $status = isset($_REQUEST['plugin_status']) ? $_REQUEST['plugin_status'] : $default_status; if ( !in_array($status, array('all', 'active', 'inactive', 'recent', 'upgrade', 'search')) ) $status = 'all'; -if ( $status != $default_status ) +if ( $status != $default_status && 'search' != $status ) update_usermeta($current_user->ID, 'plugins_last_view', $status); $page = isset($_REQUEST['paged']) ? $_REQUEST['paged'] : 1;