Allow for an empty search result set on the Installed Plugin searching, ie. when a non-existent term is searched. Fixes #13451

git-svn-id: http://svn.automattic.com/wordpress/trunk@14742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-05-19 13:04:24 +00:00
parent 31dd323f01
commit 54ed67f7f9
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ if ( isset($_GET['s']) ) {
}
$plugin_array_name = "${status}_plugins";
if ( empty($$plugin_array_name) && $status != 'all' ) {
if ( empty($$plugin_array_name) && !in_array($status, array('all', 'search')) ) {
$status = 'all';
$plugin_array_name = "${status}_plugins";
}