Ticket #42421: 42421.2.diff
File 42421.2.diff, 5.6 KB (added by , 4 years ago) |
---|
-
src/wp-admin/includes/class-wp-links-list-table.php
114 114 'orderby' => 'name', 115 115 ); 116 116 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>'; 118 118 119 119 wp_dropdown_categories( $dropdown_options ); 120 120 -
src/wp-admin/includes/class-wp-list-table.php
633 633 634 634 $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0; 635 635 ?> 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> 637 637 <select name="m" id="filter-by-date"> 638 638 <option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option> 639 639 <?php -
src/wp-admin/includes/class-wp-posts-list-table.php
456 456 'selected' => $cat, 457 457 ); 458 458 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 460 461 wp_dropdown_categories( $dropdown_options ); 461 462 } 462 463 } -
src/wp-includes/post.php
1689 1689 * - `menu_name` - Label for the menu name. Default is the same as `name`. 1690 1690 * - `filter_items_list` - Label for the table views hidden heading. Default is 'Filter posts list' / 1691 1691 * 'Filter pages list'. 1692 * - `filter_by_date` - Label for the date filter in list tables. Default is 'Filter by date'. 1692 1693 * - `items_list_navigation` - Label for the table pagination hidden heading. Default is 'Posts list navigation' / 1693 1694 * 'Pages list navigation'. 1694 1695 * - `items_list` - Label for the table hidden heading. Default is 'Posts list' / 'Pages list'. … … 1715 1716 * @since 4.7.0 Added the `view_items` and `attributes` labels. 1716 1717 * @since 5.0.0 Added the `item_published`, `item_published_privately`, `item_reverted_to_draft`, 1717 1718 * `item_scheduled`, and `item_updated` labels. 1719 * @since 5.7.0 Added the `filter_by_date` label. 1718 1720 * 1719 1721 * @access private 1720 1722 * … … 1745 1747 'remove_featured_image' => array( _x( 'Remove featured image', 'post' ), _x( 'Remove featured image', 'page' ) ), 1746 1748 'use_featured_image' => array( _x( 'Use as featured image', 'post' ), _x( 'Use as featured image', 'page' ) ), 1747 1749 'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), 1750 'filter_by_date' => array( __( 'Filter by date' ), __( 'Filter by date' ) ), 1748 1751 'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), 1749 1752 'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ), 1750 1753 'item_published' => array( __( 'Post published.' ), __( 'Page published.' ) ), -
src/wp-includes/taxonomy.php
533 533 * @since 4.3.0 Added the `no_terms` label. 534 534 * @since 4.4.0 Added the `items_list_navigation` and `items_list` labels. 535 535 * @since 4.9.0 Added the `most_used` and `back_to_items` labels. 536 * @since 5.7.0 Added the `filter_by_item` label. 536 537 * 537 538 * @param WP_Taxonomy $tax Taxonomy object. 538 539 * @return object { … … 565 566 * the meta box and taxonomy list table. 566 567 * @type string $no_terms Default 'No tags'/'No categories', used in the posts and media 567 568 * 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. 568 571 * @type string $items_list_navigation Label for the table pagination hidden heading. 569 572 * @type string $items_list Label for the table hidden heading. 570 573 * @type string $most_used Title for the Most Used tab. Default 'Most Used'. … … 600 603 'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ), 601 604 'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ), 602 605 'no_terms' => array( __( 'No tags' ), __( 'No categories' ) ), 606 'filter_by_item' => array( null, __( 'Filter by category' ) ), 603 607 'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ), 604 608 'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ), 605 609 /* translators: Tab heading when selecting from the most used terms. */