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: https://develop.svn.wordpress.org/trunk@14743 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-05-19 13:07:26 +00:00
parent 3c5ac11419
commit 794017b16b
1 changed files with 1 additions and 1 deletions

View File

@ -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) )