Ticket #23597: 23597.3.diff
| File 23597.3.diff, 2.6 KB (added by SergeyBiryukov, 4 months ago) |
|---|
-
wp-admin/includes/ajax-actions.php
655 655 $tags = get_terms( $taxonomy, array( 'number' => 45, 'orderby' => 'count', 'order' => 'DESC' ) ); 656 656 657 657 if ( empty( $tags ) ) 658 wp_die( $tax->labels->no _tagcloud );658 wp_die( $tax->labels->not_found ); 659 659 660 660 if ( is_wp_error( $tags ) ) 661 661 wp_die( $tags->get_error_message() ); -
wp-includes/taxonomy.php
411 411 * - separate_items_with_commas - This string isn't used on hierarchical taxonomies. Default is "Separate tags with commas", used in the meta box. 412 412 * - add_or_remove_items - This string isn't used on hierarchical taxonomies. Default is "Add or remove tags", used in the meta box when JavaScript is disabled. 413 413 * - choose_from_most_used - This string isn't used on hierarchical taxonomies. Default is "Choose from the most used tags", used in the meta box. 414 * - no _tagcloud - This string isn't used on hierarchical taxonomies. Default is "No tags found!", used in the meta box.414 * - not_found - This string isn't used on hierarchical taxonomies. Default is "No tags found!", used in the meta box. 415 415 * 416 416 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories). 417 417 * … … 424 424 if ( isset( $tax->helps ) && empty( $tax->labels['separate_items_with_commas'] ) ) 425 425 $tax->labels['separate_items_with_commas'] = $tax->helps; 426 426 427 if ( isset( $tax->no_tagcloud ) && empty( $tax->labels['no _tagcloud'] ) )428 $tax->labels['no _tagcloud'] = $tax->no_tagcloud;427 if ( isset( $tax->no_tagcloud ) && empty( $tax->labels['not_found'] ) ) 428 $tax->labels['not_found'] = $tax->no_tagcloud; 429 429 430 430 $nohier_vs_hier_defaults = array( 431 431 'name' => array( _x( 'Tags', 'taxonomy general name' ), _x( 'Categories', 'taxonomy general name' ) ), … … 443 443 'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ), 444 444 'add_or_remove_items' => array( __( 'Add or remove tags' ), null ), 445 445 'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ), 446 'no _tagcloud' => array( __( 'No tags found!' ), null ),446 'not_found' => array( __( 'No tags found!' ), null ), 447 447 ); 448 448 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 449 449