Ticket #32147: 32147.2.patch
File 32147.2.patch, 16.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/list-tables.css
529 529 } 530 530 531 531 .tablenav .no-pages, 532 .tablenav .one-page .pagination-links { 532 .tablenav .one-page .pagination-links, 533 .tablenav .one-page .pagination-heading { 533 534 display: none; 534 535 } 535 536 -
src/wp-admin/edit-comments.php
136 136 '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' 137 137 ); 138 138 139 get_current_screen()->add_a11y_info( array( 140 'heading_views' => __( 'Filter comments list' ), 141 'heading_pagination' => __( 'Comments list navigation' ), 142 'heading_list' => __( 'Comments list' ), 143 ) ); 144 139 145 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 140 146 ?> 141 147 -
src/wp-admin/edit-tags.php
41 41 42 42 add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) ); 43 43 44 get_current_screen()->add_a11y_info( array( 45 'heading_pagination' => $tax->labels->pagination, 46 'heading_list' => $tax->labels->list, 47 ) ); 48 44 49 $location = false; 45 50 46 51 switch ( $wp_list_table->current_action() ) { -
src/wp-admin/edit.php
232 232 '<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen" target="_blank">Documentation on Managing Pages</a>') . '</p>' . 233 233 '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 234 234 ); 235 235 236 } 236 237 238 get_current_screen()->add_a11y_info( array( 239 'heading_views' => $post_type_object->labels->views, 240 'heading_pagination' => $post_type_object->labels->pagination, 241 'heading_list' => $post_type_object->labels->list, 242 ) ); 243 237 244 add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) ); 238 245 239 246 $bulk_counts = array( -
src/wp-admin/includes/class-wp-list-table.php
378 378 if ( empty( $views ) ) 379 379 return; 380 380 381 echo "<ul class='subsubsub'>\n"; 381 if ( isset( $this->screen->a11y_info['heading_views'] ) ) { 382 $heading = '<h2 class="screen-reader-text views-heading">' . $this->screen->a11y_info['heading_views'] . '</h2>'; 383 } else { 384 $heading = ''; 385 } 386 387 echo "$heading\n<ul class='subsubsub'>\n"; 382 388 foreach ( $views as $class => $view ) { 383 389 $views[ $class ] = "\t<li class='$class'>$view"; 384 390 } … … 686 692 $infinite_scroll = $this->_pagination_args['infinite_scroll']; 687 693 } 688 694 689 $output = '<span class="displaying-num">' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>'; 695 if ( 'top' === $which && isset( $this->screen->a11y_info['heading_pagination'] ) ) { 696 $heading = '<h2 class="screen-reader-text pagination-heading">' . $this->screen->a11y_info['heading_pagination'] . '</h2>'; 697 } else { 698 $heading = ''; 699 } 690 700 701 $output = $heading . '<span class="displaying-num">' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>'; 702 691 703 $current = $this->get_pagenum(); 692 704 693 705 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); … … 931 943 932 944 $this->display_tablenav( 'top' ); 933 945 946 if ( isset( $this->screen->a11y_info['heading_list'] ) ) { 947 $heading = '<h2 class="screen-reader-text list-heading">' . $this->screen->a11y_info['heading_list'] . '</h2>'; 948 } else { 949 $heading = ''; 950 } 951 952 echo $heading; 953 934 954 ?> 935 955 <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>"> 936 956 <thead> -
src/wp-admin/includes/class-wp-media-list-table.php
163 163 global $mode; 164 164 165 165 $views = $this->get_views(); 166 167 if ( isset( $this->screen->a11y_info['heading_views'] ) ) { 168 echo '<h2 class="screen-reader-text filter-views-heading">' . $this->screen->a11y_info['heading_views'] . '</h2>'; 169 } 166 170 ?> 167 171 <div class="wp-filter"> 168 172 <div class="filter-items"> -
src/wp-admin/includes/class-wp-plugin-install-list-table.php
232 232 /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ 233 233 $views = apply_filters( "views_{$this->screen->id}", $views ); 234 234 235 if ( isset( $this->screen->a11y_info['heading_views'] ) ) { 236 echo '<h2 class="screen-reader-text filter-views-heading">' . $this->screen->a11y_info['heading_views'] . '</h2>'; 237 } 238 235 239 ?> 236 240 <div class="wp-filter"> 237 241 <ul class="filter-links"> -
src/wp-admin/includes/screen.php
322 322 private $_help_sidebar = ''; 323 323 324 324 /** 325 * The accessibility information associated with the screen, if any. 326 * 327 * @since 4.3.0 328 * @var array 329 * @access public 330 */ 331 public $a11y_info = array(); 332 333 /** 325 334 * Stores old string-based help. 326 335 */ 327 336 private static $_old_compat_help = array(); … … 781 790 return $this->columns; 782 791 } 783 792 793 /** 794 * Add accessibility related informations. 795 * 796 * @since 4.3.0 797 * 798 * @param array $args An associative array with additional information useful for accessibility. 799 * - string - heading_views - The table views hidden heading text. 800 * - string - heading_pagination - The table pagination hidden heading text. 801 * - string - heading_list - The table hidden heading text. 802 */ 803 public function add_a11y_info( $args = array() ) { 804 $defaults = array( 805 'heading_views' => __( 'Filter items list' ), 806 'heading_pagination' => __( 'Items list navigation' ), 807 'heading_list' => __( 'Items list' ), 808 ); 809 $args = wp_parse_args( $args, $defaults ); 810 811 $this->a11y_info = $args; 812 } 813 784 814 /** 785 815 * Render the screen's help section. 786 816 * -
src/wp-admin/network/site-themes.php
33 33 '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>' 34 34 ); 35 35 36 get_current_screen()->add_a11y_info( array( 37 'heading_views' => __( 'Filter site themes list' ), 38 'heading_pagination' => __( 'Site themes list navigation' ), 39 'heading_list' => __( 'Site themes list' ), 40 ) ); 41 36 42 $wp_list_table = _get_list_table('WP_MS_Themes_List_Table'); 37 43 38 44 $action = $wp_list_table->current_action(); -
src/wp-admin/network/site-users.php
36 36 '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>' 37 37 ); 38 38 39 get_current_screen()->add_a11y_info( array( 40 'heading_views' => __( 'Filter site users list' ), 41 'heading_pagination' => __( 'Site users list navigation' ), 42 'heading_list' => __( 'Site users list' ), 43 ) ); 44 39 45 $_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] ); 40 46 $referer = remove_query_arg( 'update', wp_get_referer() ); 41 47 -
src/wp-admin/network/sites.php
46 46 '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>' 47 47 ); 48 48 49 get_current_screen()->add_a11y_info( array( 50 'heading_pagination' => __( 'Sites list navigation' ), 51 'heading_list' => __( 'Sites list' ), 52 ) ); 53 49 54 $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; 50 55 51 56 if ( isset( $_GET['action'] ) ) { -
src/wp-admin/network/themes.php
251 251 '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 252 252 ); 253 253 254 get_current_screen()->add_a11y_info( array( 255 'heading_views' => __( 'Filter themes list' ), 256 'heading_pagination' => __( 'Themes list navigation' ), 257 'heading_list' => __( 'Themes list' ), 258 ) ); 259 254 260 $title = __('Themes'); 255 261 $parent_file = 'themes.php'; 256 262 -
src/wp-admin/network/users.php
276 276 '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>' 277 277 ); 278 278 279 get_current_screen()->add_a11y_info( array( 280 'heading_views' => __( 'Filter users list' ), 281 'heading_pagination' => __( 'Users list navigation' ), 282 'heading_list' => __( 'Users list' ), 283 ) ); 284 279 285 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 280 286 281 287 if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) { -
src/wp-admin/plugin-install.php
88 88 '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 89 89 ); 90 90 91 get_current_screen()->add_a11y_info( array( 92 'heading_views' => __( 'Filter plugins list' ), 93 'heading_pagination' => __( 'Plugins list navigation' ), 94 'heading_list' => __( 'Plugins list' ), 95 ) ); 96 91 97 /** 92 98 * WordPress Administration Template Header. 93 99 */ -
src/wp-admin/plugins.php
392 392 '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 393 393 ); 394 394 395 get_current_screen()->add_a11y_info( array( 396 'heading_views' => __( 'Filter plugins list' ), 397 'heading_pagination' => __( 'Plugins list navigation' ), 398 'heading_list' => __( 'Plugins list' ), 399 ) ); 400 395 401 $title = __('Plugins'); 396 402 $parent_file = 'plugins.php'; 397 403 -
src/wp-admin/theme-install.php
126 126 <?php install_themes_upload(); ?> 127 127 </div> 128 128 129 <h2 class="screen-reader-text"><?php _e( 'Filter themes list' ); ?></h2> 130 129 131 <div class="wp-filter"> 130 132 <div class="filter-count"> 131 133 <span class="count theme-count"></span> … … 169 171 </div> 170 172 </div> 171 173 </div> 174 <h2 class="screen-reader-text"><?php _e( 'Themes list' ); ?></h2> 172 175 <div class="theme-browser content-filterable"></div> 173 176 <div class="theme-install-overlay wp-full-overlay expanded"></div> 174 177 -
src/wp-admin/upload.php
202 202 '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' 203 203 ); 204 204 205 get_current_screen()->add_a11y_info( array( 206 'heading_views' => __( 'Filter media items list' ), 207 'heading_pagination' => __( 'Media items list navigation' ), 208 'heading_list' => __( 'Media items list' ), 209 ) ); 210 205 211 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 206 212 ?> 207 213 -
src/wp-admin/users.php
63 63 '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 64 64 ); 65 65 66 get_current_screen()->add_a11y_info( array( 67 'heading_views' => __( 'Filter users list' ), 68 'heading_pagination' => __( 'Users list navigation' ), 69 'heading_list' => __( 'Users list' ), 70 ) ); 71 66 72 if ( empty($_REQUEST) ) { 67 73 $referer = '<input type="hidden" name="wp_http_referer" value="'. esc_attr( wp_unslash( $_SERVER['REQUEST_URI'] ) ) . '" />'; 68 74 } elseif ( isset($_REQUEST['wp_http_referer']) ) { -
src/wp-includes/post.php
1616 1616 * ones the default is 'Parent Page:'. 1617 1617 * - all_items - String for the submenu. Default is All Posts/All Pages. 1618 1618 * - menu_name - Default is the same as `name`. 1619 * - views - String for the table views hidden heading. 1620 * - pagination - String for the table pagination hidden heading. 1621 * - list - String for the table hidden heading. 1619 1622 * 1620 1623 * Above, the first default value is for non-hierarchical post types (like posts) 1621 1624 * and the second one is for hierarchical post types (like pages). … … 1639 1642 'not_found' => array( __('No posts found.'), __('No pages found.') ), 1640 1643 'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ), 1641 1644 'parent_item_colon' => array( null, __('Parent Page:') ), 1642 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ) 1645 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ), 1646 'views' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), 1647 'pagination' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), 1648 'list' => array( __( 'Posts list' ), __( 'Pages list' ) ), 1643 1649 ); 1644 1650 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 1645 1651 -
src/wp-includes/taxonomy.php
472 472 * - 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. 473 473 * - 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. 474 474 * - not_found - Default is "No tags found"/"No categories found", used in the meta box and taxonomy list table. 475 * - pagination - String for the table pagination hidden heading. 476 * - list - String for the table hidden heading. 475 477 * 476 478 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories). 477 479 * … … 509 511 'add_or_remove_items' => array( __( 'Add or remove tags' ), null ), 510 512 'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ), 511 513 'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ), 514 'pagination' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ), 515 'list' => array( __( 'Tags list' ), __( 'Categories list' ) ), 512 516 ); 513 517 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 514 518