mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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