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:
parent
c3ba440221
commit
3c5ac11419
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue