Do not perform a plugin search for an empty string on the Installed plugins screen. Clicking "Search Plugins" without a term would result in "No plugins to show". See #13451
git-svn-id: http://svn.automattic.com/wordpress/trunk@14743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54ed67f7f9
commit
e3c89b72b5
|
@ -436,7 +436,7 @@ $total_mustuse_plugins = count($mustuse_plugins);
|
|||
$total_dropins_plugins = count($dropins_plugins);
|
||||
|
||||
//Searching.
|
||||
if ( isset($_GET['s']) ) {
|
||||
if ( !empty($_GET['s']) ) {
|
||||
function _search_plugins_filter_callback($plugin) {
|
||||
static $term;
|
||||
if ( is_null($term) )
|
||||
|
|
Loading…
Reference in New Issue