From 6597e399ccaf0abb5f6e907e75477f8a72729617 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 15 Feb 2010 09:05:56 +0000 Subject: [PATCH] Only show "Popular Terms" header when there is a tag cloud to show. see #11838 git-svn-id: http://svn.automattic.com/wordpress/trunk@13160 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-tags.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 47657f38de..e2f9e6b5fd 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -302,17 +302,21 @@ if ( $page_links )
+edit_cap ) ) + $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false, 'link' => 'edit' ) ); +else + $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false ) ); + +if ( $tag_cloud ) : +?>

label); ?>

-edit_cap) ) - wp_tag_cloud(array('taxonomy' => $taxonomy, 'link' => 'edit')); -else - wp_tag_cloud(array('taxonomy' => $taxonomy)); -?> +
- edit_cap) ) { if ( 'category' == $taxonomy ) do_action('add_category_form_pre', (object)array('parent' => 0) ); // Back compat hook. Deprecated in preference to $taxonomy_pre_add_form