More informative error for when there are no popular tags. fixes #8522
git-svn-id: https://develop.svn.wordpress.org/trunk@10142 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
208c7a2c74
commit
3bdf883c22
|
@ -429,7 +429,7 @@ case 'get-tagcloud' :
|
|||
$tags = get_tags( array( 'number' => 45, 'orderby' => 'count', 'order' => 'DESC' ) );
|
||||
|
||||
if ( empty( $tags ) )
|
||||
die('0');
|
||||
die( __('No tags found!') );
|
||||
|
||||
foreach ( $tags as $key => $tag ) {
|
||||
$tags[ $key ]->link = '#';
|
||||
|
|
Loading…
Reference in New Issue