Ticket #32150: 32150.patch
| File 32150.patch, 2.9 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/class-wp-posts-list-table.php
903 903 /* translators: used between list items, there is a space after the comma */ 904 904 echo join( __( ', ' ), $out ); 905 905 } else { 906 echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . $taxonomy_object->labels->no t_found. '</span>';906 echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . $taxonomy_object->labels->no_terms . '</span>'; 907 907 } 908 908 return; 909 909 } -
src/wp-admin/includes/class-wp-media-list-table.php
509 509 /* translators: used between list items, there is a space after the comma */ 510 510 echo join( __( ', ' ), $out ); 511 511 } else { 512 echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->no t_found. '</span>';512 echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->no_terms . '</span>'; 513 513 } 514 514 515 515 return; -
src/wp-includes/taxonomy.php
472 472 * - 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. 473 473 * - 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. 474 474 * - not_found - Default is "No tags found"/"No categories found", used in the meta box and taxonomy list table. 475 * - no_terms - Default is "No tags"/"No categories", used in the posts and media list tables. 475 476 * 476 477 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories). 477 478 * 478 479 * @todo Better documentation for the labels array. 479 480 * 480 481 * @since 3.0.0 482 * @since 4.3.0 Added the `no_terms` label. 481 483 * 482 484 * @param object $tax Taxonomy object. 483 485 * @return object object with all the labels as member variables. … … 508 510 'add_or_remove_items' => array( __( 'Add or remove tags' ), null ), 509 511 'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ), 510 512 'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ), 513 'no_terms' => array( __( 'No tags' ), __( 'No categories' ) ), 511 514 ); 512 515 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 513 516