Ticket #42421: 42421.patch
File 42421.patch, 3.9 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/class-wp-links-list-table.php
108 108 'orderby' => 'name', 109 109 ); 110 110 111 echo '<label class="screen-reader-text" for="cat_id">' . __( 'Filter by category' ). '</label>';111 echo '<label class="screen-reader-text" for="cat_id">' . get_taxonomy( 'link_category' )->labels->filter_by_category . '</label>'; 112 112 wp_dropdown_categories( $dropdown_options ); 113 113 submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) ); 114 114 ?> -
src/wp-admin/includes/class-wp-list-table.php
553 553 554 554 $m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0; 555 555 ?> 556 <label for="filter-by-date" class="screen-reader-text"><?php _e( 'Filter by date' ); ?></label>556 <label for="filter-by-date" class="screen-reader-text"><?php get_post_type_object( $post_type )->labels->filter_by_date; ?></label> 557 557 <select name="m" id="filter-by-date"> 558 558 <option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option> 559 559 <?php -
src/wp-admin/includes/class-wp-posts-list-table.php
442 442 'selected' => $cat 443 443 ); 444 444 445 echo '<label class="screen-reader-text" for="cat">' . __( 'Filter by category' ). '</label>';445 echo '<label class="screen-reader-text" for="cat">' . get_post_type_object( $post_type )->labels->filter_by_category . '</label>'; 446 446 wp_dropdown_categories( $dropdown_options ); 447 447 } 448 448 } -
src/wp-includes/post.php
1406 1406 'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), 1407 1407 'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), 1408 1408 'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ), 1409 'filter_by_category' => array( _x( 'Filter by category', 'post' ), _x( 'Filter by category', 'page' ) ), 1410 'filter_by_date' => array( _x( 'Filter by date', 'post' ), _x( 'Filter by date', 'page' ) ), 1409 1411 ); 1410 1412 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 1411 1413 -
src/wp-includes/taxonomy.php
121 121 'add_or_remove_items' => null, 122 122 'choose_from_most_used' => null, 123 123 'back_to_items' => __( '← Back to Link Categories' ), 124 'filter_by_category' => __( 'Filter by category' ), 124 125 ), 125 126 'capabilities' => array( 126 127 'manage_terms' => 'manage_links', -
tests/phpunit/tests/xmlrpc/wp/getPostType.php
95 95 $this->assertInternalType( 'string', $result['labels']['all_items'] ); 96 96 $this->assertInternalType( 'string', $result['labels']['menu_name'] ); 97 97 $this->assertInternalType( 'string', $result['labels']['name_admin_bar'] ); 98 $this->assertInternalType( 'string', $result['labels']['filter_by_category'] ); 99 $this->assertInternalType( 'string', $result['labels']['filter_by_date'] ); 98 100 99 101 // check cap data types 100 102 $this->assertInternalType( 'string', $result['cap']['edit_post'] );