Add some custom taxonomy flags to allow fully customize strings in the taxonomy meta box. see #11838
git-svn-id: http://svn.automattic.com/wordpress/trunk@13538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -620,8 +620,10 @@ case 'get-tagcloud' :
|
||||
|
||||
$tags = get_terms( $taxonomy, array( 'number' => 45, 'orderby' => 'count', 'order' => 'DESC' ) );
|
||||
|
||||
if ( empty( $tags ) )
|
||||
die( __('No tags found!') );
|
||||
if ( empty( $tags ) ) {
|
||||
$tax = get_taxonomy( $taxonomy );
|
||||
die( isset( $tax->no_tagcloud ) ? $tax->no_tagcloud : __('No tags found!') );
|
||||
}
|
||||
|
||||
if ( is_wp_error($tags) )
|
||||
die($tags->get_error_message());
|
||||
|
||||
Reference in New Issue
Block a user