Make WordPress Core

Ticket #42421: 42421.2.diff

File 42421.2.diff, 5.6 KB (added by SergeyBiryukov, 4 years ago)
  • src/wp-admin/includes/class-wp-links-list-table.php

     
    114114                                'orderby'         => 'name',
    115115                        );
    116116
    117                         echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ) . '</label>';
     117                        echo '<label class="screen-reader-text" for="cat_id">' . get_taxonomy( 'link_category' )->labels->filter_by_item . '</label>';
    118118
    119119                        wp_dropdown_categories( $dropdown_options );
    120120
  • src/wp-admin/includes/class-wp-list-table.php

     
    633633
    634634                $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
    635635                ?>
    636                 <label for="filter-by-date" class="screen-reader-text"><?php _e( 'Filter by date' ); ?></label>
     636                <label for="filter-by-date" class="screen-reader-text"><?php echo get_post_type_object( $post_type )->labels->filter_by_date; ?></label>
    637637                <select name="m" id="filter-by-date">
    638638                        <option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
    639639                <?php
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    456456                                'selected'        => $cat,
    457457                        );
    458458
    459                         echo '<label class="screen-reader-text" for="cat">' . __( 'Filter by category' ) . '</label>';
     459                        echo '<label class="screen-reader-text" for="cat">' . get_taxonomy( 'category' )->labels->filter_by_item . '</label>';
     460
    460461                        wp_dropdown_categories( $dropdown_options );
    461462                }
    462463        }
  • src/wp-includes/post.php

     
    16891689 * - `menu_name` - Label for the menu name. Default is the same as `name`.
    16901690 * - `filter_items_list` - Label for the table views hidden heading. Default is 'Filter posts list' /
    16911691 *                       'Filter pages list'.
     1692 * - `filter_by_date` - Label for the date filter in list tables. Default is 'Filter by date'.
    16921693 * - `items_list_navigation` - Label for the table pagination hidden heading. Default is 'Posts list navigation' /
    16931694 *                           'Pages list navigation'.
    16941695 * - `items_list` - Label for the table hidden heading. Default is 'Posts list' / 'Pages list'.
     
    17151716 * @since 4.7.0 Added the `view_items` and `attributes` labels.
    17161717 * @since 5.0.0 Added the `item_published`, `item_published_privately`, `item_reverted_to_draft`,
    17171718 *              `item_scheduled`, and `item_updated` labels.
     1719 * @since 5.7.0 Added the `filter_by_date` label.
    17181720 *
    17191721 * @access private
    17201722 *
     
    17451747                'remove_featured_image'    => array( _x( 'Remove featured image', 'post' ), _x( 'Remove featured image', 'page' ) ),
    17461748                'use_featured_image'       => array( _x( 'Use as featured image', 'post' ), _x( 'Use as featured image', 'page' ) ),
    17471749                'filter_items_list'        => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ),
     1750                'filter_by_date'           => array( __( 'Filter by date' ), __( 'Filter by date' ) ),
    17481751                'items_list_navigation'    => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ),
    17491752                'items_list'               => array( __( 'Posts list' ), __( 'Pages list' ) ),
    17501753                'item_published'           => array( __( 'Post published.' ), __( 'Page published.' ) ),
  • src/wp-includes/taxonomy.php

     
    533533 * @since 4.3.0 Added the `no_terms` label.
    534534 * @since 4.4.0 Added the `items_list_navigation` and `items_list` labels.
    535535 * @since 4.9.0 Added the `most_used` and `back_to_items` labels.
     536 * @since 5.7.0 Added the `filter_by_item` label.
    536537 *
    537538 * @param WP_Taxonomy $tax Taxonomy object.
    538539 * @return object {
     
    565566 *                                              the meta box and taxonomy list table.
    566567 *     @type string $no_terms                   Default 'No tags'/'No categories', used in the posts and media
    567568 *                                              list tables.
     569 *     @type string $filter_by_item             This label is only used for hierarchical taxonomies. Default
     570 *                                              'Filter by category', used in the posts list table.
    568571 *     @type string $items_list_navigation      Label for the table pagination hidden heading.
    569572 *     @type string $items_list                 Label for the table hidden heading.
    570573 *     @type string $most_used                  Title for the Most Used tab. Default 'Most Used'.
     
    600603                'choose_from_most_used'      => array( __( 'Choose from the most used tags' ), null ),
    601604                'not_found'                  => array( __( 'No tags found.' ), __( 'No categories found.' ) ),
    602605                'no_terms'                   => array( __( 'No tags' ), __( 'No categories' ) ),
     606                'filter_by_item'             => array( null, __( 'Filter by category' ) ),
    603607                'items_list_navigation'      => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
    604608                'items_list'                 => array( __( 'Tags list' ), __( 'Categories list' ) ),
    605609                /* translators: Tab heading when selecting from the most used terms. */