From 052500b76f97c33fe2233e75be475511fbdb5f45 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: http://svn.automattic.com/wordpress/trunk@16861 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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(); ?>