From 4d7afd30fa657ff72677c73abe5b4bb85766730f Mon Sep 17 00:00:00 2001 From: scribu Date: Fri, 10 Dec 2010 18:40:48 +0000 Subject: [PATCH] Don't show search box if there are no themes available. See #15353 git-svn-id: https://develop.svn.wordpress.org/trunk@16861 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/themes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 5960eb7396..edf50fd40c 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -143,9 +143,13 @@ if ( ! current_user_can( 'switch_themes' ) ) { exit; } ?> +

+has_items() ) : ?> +
+

+ + display(); ?>