Make WordPress Core

Ticket #32150: 32150.patch

File 32150.patch, 2.9 KB (added by johnbillion, 11 years ago)
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    903903                                /* translators: used between list items, there is a space after the comma */
    904904                                echo join( __( ', ' ), $out );
    905905                        } else {
    906                                 echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . $taxonomy_object->labels->not_found . '</span>';
     906                                echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . $taxonomy_object->labels->no_terms . '</span>';
    907907                        }
    908908                        return;
    909909                }
  • src/wp-admin/includes/class-wp-media-list-table.php

     
    509509                                /* translators: used between list items, there is a space after the comma */
    510510                                echo join( __( ', ' ), $out );
    511511                        } else {
    512                                 echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->not_found . '</span>';
     512                                echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->no_terms . '</span>';
    513513                        }
    514514
    515515                        return;
  • src/wp-includes/taxonomy.php

     
    472472 * - 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.
    473473 * - 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.
    474474 * - 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.
    475476 *
    476477 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories).
    477478 *
    478479 * @todo Better documentation for the labels array.
    479480 *
    480481 * @since 3.0.0
     482 * @since 4.3.0 Added the `no_terms` label.
    481483 *
    482484 * @param object $tax Taxonomy object.
    483485 * @return object object with all the labels as member variables.
     
    508510                'add_or_remove_items' => array( __( 'Add or remove tags' ), null ),
    509511                'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ),
    510512                'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ),
     513                'no_terms' => array( __( 'No tags' ), __( 'No categories' ) ),
    511514        );
    512515        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    513516