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: https://develop.svn.wordpress.org/trunk@14742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-05-19 13:04:24 +00:00
parent c3ba440221
commit 3c5ac11419
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";
}