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:
dd32 2010-05-19 13:07:26 +00:00
parent 54ed67f7f9
commit e3c89b72b5
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) )