Make WordPress Core

Ticket #32150: 32150.4.patch

File 32150.4.patch, 2.7 KB (added by afercia, 11 years ago)
  • 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-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-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_term - Default is "No terms" for both hierarchical and not-hierarchical taxonomies, used in the posts and media list table.
    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 *
     
    508509                'add_or_remove_items' => array( __( 'Add or remove tags' ), null ),
    509510                'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ),
    510511                'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ),
     512                'no_terms' => array( __( 'No terms' ), __( 'No terms' ) ),
    511513        );
    512514        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    513515