Make WordPress Core


Ignore:
Timestamp:
03/01/2010 09:04:37 PM (17 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r13489 r13538  
    621621        $tags = get_terms( $taxonomy, array( 'number' => 45, 'orderby' => 'count', 'order' => 'DESC' ) );
    622622
    623         if ( empty( $tags ) )
    624                 die( __('No tags found!') );
     623        if ( empty( $tags ) ) {
     624                $tax = get_taxonomy( $taxonomy );
     625                die( isset( $tax->no_tagcloud ) ? $tax->no_tagcloud : __('No tags found!') );
     626        }
    625627
    626628        if ( is_wp_error($tags) )
Note: See TracChangeset for help on using the changeset viewer.