mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 14:05:11 +00:00
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:
parent
31dd323f01
commit
54ed67f7f9
@ -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…
x
Reference in New Issue
Block a user