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:
nacin
2010-03-01 21:04:37 +00:00
parent 9f0db9355a
commit b657e01fad
2 changed files with 11 additions and 6 deletions

View File

@@ -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());