Add some custom taxonomy flags to allow fully customize strings in the taxonomy meta box. see #11838

git-svn-id: https://develop.svn.wordpress.org/trunk@13538 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-03-01 21:04:37 +00:00
parent a37ca909a6
commit de7eec68d5
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());