Ticket #29748: 29748-wp-includes.patch
File 29748-wp-includes.patch, 27.8 KB (added by , 9 years ago) |
---|
-
src/wp-includes/admin-bar.php
109 109 function wp_admin_bar_wp_menu( $wp_admin_bar ) { 110 110 $wp_admin_bar->add_menu( array( 111 111 'id' => 'wp-logo', 112 /* translators: accessibility text */ 112 113 'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'About WordPress' ) . '</span>', 113 114 'href' => self_admin_url( 'about.php' ), 114 115 ) ); … … 167 168 if ( is_admin() ) { 168 169 $wp_admin_bar->add_menu( array( 169 170 'id' => 'menu-toggle', 171 /* translators: accessibility text */ 170 172 'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'Menu' ) . '</span>', 171 173 'href' => '#', 172 174 ) ); … … 697 699 698 700 $icon = '<span class="ab-icon"></span>'; 699 701 $title = '<span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-' . $awaiting_mod . '" aria-hidden="true">' . number_format_i18n( $awaiting_mod ) . '</span>'; 702 /* translators: accessibility text */ 700 703 $title .= '<span class="screen-reader-text">' . $awaiting_text . '</span>'; 701 704 702 705 $wp_admin_bar->add_menu( array( … … 782 785 return; 783 786 784 787 $title = '<span class="ab-icon"></span><span class="ab-label">' . number_format_i18n( $update_data['counts']['total'] ) . '</span>'; 788 /* translators: accessibility text */ 785 789 $title .= '<span class="screen-reader-text">' . $update_data['title'] . '</span>'; 786 790 787 791 $wp_admin_bar->add_menu( array( … … 807 811 808 812 $form = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">'; 809 813 $form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />'; 814 /* translators: accessibility text */ 810 815 $form .= '<label for="adminbar-search" class="screen-reader-text">' . __( 'Search' ) . '</label>'; 811 816 $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>'; 812 817 $form .= '</form>'; -
src/wp-includes/class-wp-customize-nav-menus.php
707 707 </span> 708 708 <button type="button" class="button-link item-add"> 709 709 <span class="screen-reader-text"><?php 710 /* translators: 1: Title of a menu item, 2: Type of a menu item */710 /* translators: accessibility text: 1: Title of a menu item, 2: Type of a menu item */ 711 711 printf( __( 'Add to menu: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.type_label }}' ); 712 712 ?></span> 713 713 </button> … … 743 743 <div id="available-menu-items" class="accordion-container"> 744 744 <div class="customize-section-title"> 745 745 <button type="button" class="customize-section-back" tabindex="-1"> 746 <span class="screen-reader-text"><?php _e( 'Back' ); ?></span> 746 <span class="screen-reader-text"><?php 747 /* translators: accessibility text */ 748 _e( 'Back' ); 749 ?></span> 747 750 </button> 748 751 <h3> 749 752 <span class="customize-action"> … … 757 760 </div> 758 761 <div id="available-menu-items-search" class="accordion-section cannot-expand"> 759 762 <div class="accordion-section-title"> 760 <label class="screen-reader-text" for="menu-items-search"><?php _e( 'Search Menu Items' ); ?></label> 763 <label class="screen-reader-text" for="menu-items-search"><?php 764 /* translators: accessibility text */ 765 _e( 'Search Menu Items' ); 766 ?></label> 761 767 <input type="text" id="menu-items-search" placeholder="<?php esc_attr_e( 'Search menu items…' ) ?>" aria-describedby="menu-items-search-desc" /> 762 <p class="screen-reader-text" id="menu-items-search-desc"><?php _e( 'The search results will be updated as you type.' ); ?></p> 768 <p class="screen-reader-text" id="menu-items-search-desc"><?php 769 /* translators: accessibility text */ 770 _e( 'The search results will be updated as you type.' ); 771 ?></p> 763 772 <span class="spinner"></span> 764 <span class="clear-results"><span class="screen-reader-text"><?php _e( 'Clear Results' ); ?></span></span> 773 <span class="clear-results"><span class="screen-reader-text"><?php 774 /* translators: accessibility text */ 775 _e( 'Clear Results' ); 776 ?></span></span> 765 777 </div> 766 778 <ul class="accordion-section-content" data-type="search"></ul> 767 779 </div> … … 769 781 <h4 class="accordion-section-title" role="presentation"> 770 782 <?php _e( 'Custom Links' ); ?> 771 783 <button type="button" class="button-link" aria-expanded="false"> 772 <span class="screen-reader-text"><?php _e( 'Toggle section: Custom Links' ); ?></span> 784 <span class="screen-reader-text"><?php 785 /* translators: accessibility text */ 786 _e( 'Toggle section: Custom Links' ); 787 ?></span> 773 788 <span class="toggle-indicator" aria-hidden="true"></span> 774 789 </button> 775 790 </h4> … … 803 818 <span class="no-items"><?php _e( 'No items' ); ?></span> 804 819 <button type="button" class="button-link" aria-expanded="false"> 805 820 <span class="screen-reader-text"><?php 806 /* translators: %s: Title of a section with menu items */821 /* translators: accessibility text: %s: Title of a section with menu items */ 807 822 printf( __( 'Toggle section: %s' ), esc_html( $available_item_type['title'] ) ); ?></span> 808 823 <span class="toggle-indicator" aria-hidden="true"></span> 809 824 </button> -
src/wp-includes/class-wp-customize-panel.php
325 325 <script type="text/html" id="tmpl-customize-panel-<?php echo esc_attr( $this->type ); ?>"> 326 326 <?php $this->render_template(); ?> 327 327 </script> 328 328 <?php 329 329 } 330 330 331 331 /** … … 344 344 <li id="accordion-panel-{{ data.id }}" class="accordion-section control-section control-panel control-panel-{{ data.type }}"> 345 345 <h3 class="accordion-section-title" tabindex="0"> 346 346 {{ data.title }} 347 <span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span> 347 <span class="screen-reader-text"><?php 348 /* translators: accessibility text */ 349 _e( 'Press return or enter to open this panel' ); 350 ?></span> 348 351 </h3> 349 352 <ul class="accordion-sub-container control-panel-content"></ul> 350 353 </li> … … 365 368 protected function content_template() { 366 369 ?> 367 370 <li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>"> 368 <button class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button> 371 <button class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php 372 /* translators: accessibility text */ 373 _e( 'Back' ); 374 ?></span></button> 369 375 <div class="accordion-section-title"> 370 376 <span class="preview-notice"><?php 371 377 /* translators: %s: the site/panel title in the Customizer */ … … 372 378 echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">{{ data.title }}</strong>' ); 373 379 ?></span> 374 380 <# if ( data.description ) { #> 375 <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> 381 <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php 382 /* translators: accessibility text */ 383 _e( 'Help' ); 384 ?></span></button> 376 385 <# } #> 377 386 </div> 378 387 <# if ( data.description ) { #> -
src/wp-includes/class-wp-customize-section.php
324 324 * @see WP_Customize_Manager::render_template() 325 325 */ 326 326 public function print_template() { 327 327 ?> 328 328 <script type="text/html" id="tmpl-customize-section-<?php echo $this->type; ?>"> 329 329 <?php $this->render_template(); ?> 330 330 </script> 331 331 <?php 332 332 } 333 333 334 334 /** … … 347 347 <li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }}"> 348 348 <h3 class="accordion-section-title" tabindex="0"> 349 349 {{ data.title }} 350 <span class="screen-reader-text"><?php _e( 'Press return or enter to open this section' ); ?></span> 350 <span class="screen-reader-text"><?php 351 /* translators: accessibility text */ 352 _e( 'Press return or enter to open this section' ); 353 ?></span> 351 354 </h3> 352 355 <ul class="accordion-section-content"> 353 356 <li class="customize-section-description-container"> 354 357 <div class="customize-section-title"> 355 358 <button class="customize-section-back" tabindex="-1"> 356 <span class="screen-reader-text"><?php _e( 'Back' ); ?></span> 359 <span class="screen-reader-text"><?php 360 /* translators: accessibility text */ 361 _e( 'Back' ); 362 ?></span> 357 363 </button> 358 364 <h3> 359 365 <span class="customize-action"> -
src/wp-includes/class-wp-customize-widgets.php
765 765 <div id="available-widgets"> 766 766 <div class="customize-section-title"> 767 767 <button class="customize-section-back" tabindex="-1"> 768 <span class="screen-reader-text"><?php _e( 'Back' ); ?></span> 768 <span class="screen-reader-text"><?php 769 _e( 'Back' ); 770 ?></span> 769 771 </button> 770 772 <h3> 771 773 <span class="customize-action"><?php … … 776 778 </h3> 777 779 </div> 778 780 <div id="available-widgets-filter"> 779 <label class="screen-reader-text" for="widgets-search"><?php _e( 'Search Widgets' ); ?></label> 781 <label class="screen-reader-text" for="widgets-search"><?php 782 /* translators: accessibility text */ 783 _e( 'Search Widgets' ); 784 ?></label> 780 785 <input type="search" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets…' ) ?>" /> 781 786 </div> 782 787 <div id="available-widgets-list"> … … 1108 1113 * 1109 1114 * @since 3.9.0 1110 1115 * @access public 1111 1116 * 1112 1117 * @global array $wp_registered_sidebars 1113 1118 * @global array $wp_registered_widgets 1114 1119 */ -
src/wp-includes/class-wp-editor.php
1410 1410 <form id="wp-link" tabindex="-1"> 1411 1411 <?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?> 1412 1412 <h1 id="link-modal-title"><?php _e( 'Insert/edit link' ) ?></h1> 1413 <button type="button" id="wp-link-close"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button> 1413 <button type="button" id="wp-link-close"><span class="screen-reader-text"><?php 1414 /* translators: accessibility text */ 1415 _e( 'Close' ); 1416 ?></span></button> 1414 1417 <div id="link-selector"> 1415 1418 <div id="link-options"> 1416 1419 <p class="howto" id="wplink-enter-url"><?php _e( 'Enter the destination URL' ); ?></p> … … 1445 1448 <div id="most-recent-results" class="query-results" tabindex="0"> 1446 1449 <div class="query-notice" id="query-notice-message"> 1447 1450 <em class="query-notice-default"><?php _e( 'No search term specified. Showing recent items.' ); ?></em> 1448 <em class="query-notice-hint screen-reader-text"><?php _e( 'Search or use up and down arrow keys to select an item.' ); ?></em> 1451 <em class="query-notice-hint screen-reader-text"><?php 1452 /* translators: accessibility text */ 1453 _e( 'Search or use up and down arrow keys to select an item.' ); 1454 ?></em> 1449 1455 </div> 1450 1456 <ul></ul> 1451 1457 <div class="river-waiting"> 1452 1458 <span class="spinner"></span> 1453 1459 </div> 1454 1455 1460 </div> 1461 </div> 1456 1462 </div> 1457 1463 <div class="submitbox"> 1458 1464 <div id="wp-link-cancel"> -
src/wp-includes/comment-template.php
193 193 $display = ($linktext != '') ? $linktext : $email; 194 194 $return = $before; 195 195 $return .= sprintf( '<a href="%1$s">%2$s</a>', esc_url( 'mailto:' . $email ), esc_html( $display ) ); 196 196 $return .= $after; 197 197 return $return; 198 198 } else { 199 199 return ''; … … 1472 1472 $number = get_comments_number( $id ); 1473 1473 1474 1474 if ( false === $zero ) { 1475 /* translators: %s: post title */1475 /* translators: accessiblity text: %s: post title */ 1476 1476 $zero = sprintf( __( 'No Comments<span class="screen-reader-text"> on %s</span>' ), $title ); 1477 1477 } 1478 1478 1479 1479 if ( false === $one ) { 1480 /* translators: %s: post title */1480 /* translators: accessibility text: %s: post title */ 1481 1481 $one = sprintf( __( '1 Comment<span class="screen-reader-text"> on %s</span>' ), $title ); 1482 1482 } 1483 1483 1484 1484 if ( false === $more ) { 1485 /* translators: 1: Number of comments 2: post title */1485 /* translators: 1: Number of comments 2: accessibility text: post title */ 1486 1486 $more = _n( '%1$s Comment<span class="screen-reader-text"> on %2$s</span>', '%1$s Comments<span class="screen-reader-text"> on %2$s</span>', $number ); 1487 1487 $more = sprintf( $more, number_format_i18n( $number ), $title ); 1488 1488 } 1489 1489 1490 1490 if ( false === $none ) { 1491 /* translators: %s: post title */1491 /* translators: accessibility text: %s: post title */ 1492 1492 $none = sprintf( __( 'Comments Off<span class="screen-reader-text"> on %s</span>' ), $title ); 1493 1493 } 1494 1494 -
src/wp-includes/customize/class-wp-customize-header-image-control.php
103 103 <# } else { #> 104 104 105 105 <# if (data.type === 'uploaded') { #> 106 <button type="button" class="dashicons dashicons-no close"><span class="screen-reader-text"><?php _e( 'Remove image' ); ?></span></button> 106 <button type="button" class="dashicons dashicons-no close"><span class="screen-reader-text"><?php 107 /* translators: accessibility text */ 108 _e( 'Remove image' ); 109 ?></span></button> 107 110 <# } #> 108 111 109 112 <button type="button" class="choice thumbnail" 110 113 data-customize-image-value="{{{data.header.url}}}" 111 114 data-customize-header-image-data="{{JSON.stringify(data.header)}}"> 112 <span class="screen-reader-text"><?php _e( 'Set image' ); ?></span> 115 <span class="screen-reader-text"><?php 116 /* translators: accessibility text */ 117 _e( 'Set image' ); 118 ?></span> 113 119 <img src="{{{data.header.thumbnail_url}}}" alt="{{{data.header.alt_text || data.header.description}}}"> 114 120 </button> 115 121 -
src/wp-includes/customize/class-wp-customize-nav-menu-control.php
55 55 <span class="reorder"><?php _ex( 'Reorder', 'Reorder menu items in Customizer' ); ?></span> 56 56 <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering menu items in Customizer' ); ?></span> 57 57 </button> 58 <p class="screen-reader-text" id="reorder-items-desc-{{ data.menu_id }}"><?php _e( 'When in reorder mode, additional controls to reorder menu items will be available in the items list above.' ); ?></p> 58 <p class="screen-reader-text" id="reorder-items-desc-{{ data.menu_id }}"><?php 59 /* translators: accessibility text */ 60 _e( 'When in reorder mode, additional controls to reorder menu items will be available in the items list above.' ); 61 ?></p> 59 62 <span class="menu-delete-item"> 60 63 <button type="button" class="button-link menu-delete"> 61 64 <?php _e( 'Delete Menu' ); ?> -
src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php
73 73 </span> 74 74 <span class="item-controls"> 75 75 <button type="button" class="button-link item-edit" aria-expanded="false"><span class="screen-reader-text"><?php 76 /* translators: 1: Title of a menu item, 2: Type of a menu item */76 /* translators: accessibility text: 1: Title of a menu item, 2: Type of a menu item */ 77 77 printf( __( 'Edit menu item: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' ); 78 78 ?></span><span class="toggle-indicator" aria-hidden="true"></span></button> 79 79 <button type="button" class="button-link item-delete submitdelete deletion"><span class="screen-reader-text"><?php 80 /* translators: 1: Title of a menu item, 2: Type of a menu item */80 /* translators: accessibility text: 1: Title of a menu item, 2: Type of a menu item */ 81 81 printf( __( 'Remove Menu Item: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' ); 82 82 ?></span></button> 83 83 </span> -
src/wp-includes/customize/class-wp-customize-nav-menus-panel.php
72 72 ?> 73 73 <li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>"> 74 74 <button type="button" class="customize-panel-back" tabindex="-1"> 75 <span class="screen-reader-text"><?php _e( 'Back' ); ?></span> 75 <span class="screen-reader-text"><?php 76 /* translators: accessibility text */ 77 _e( 'Back' ); 78 ?></span> 76 79 </button> 77 80 <div class="accordion-section-title"> 78 81 <span class="preview-notice"> … … 82 85 ?> 83 86 </span> 84 87 <button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"> 85 <span class="screen-reader-text"><?php _e( 'Help' ); ?></span> 88 <span class="screen-reader-text"><?php 89 /* translators: accessibility text */ 90 _e( 'Help' ); 91 ?></span> 86 92 </button> 87 93 <button type="button" class="customize-screen-options-toggle" aria-expanded="false"> 88 <span class="screen-reader-text"><?php _e( 'Menu Options' ); ?></span> 94 <span class="screen-reader-text"><?php 95 /* translators: accessibility text */ 96 _e( 'Menu Options' ); 97 ?></span> 89 98 </button> 90 99 </div> 91 100 <# if ( data.description ) { #> -
src/wp-includes/customize/class-wp-customize-themes-section.php
72 72 <div id="customize-container"></div> 73 73 <?php if ( count( $this->controls ) > 4 ) : ?> 74 74 <p><label for="themes-filter"> 75 <span class="screen-reader-text"><?php _e( 'Search installed themes…' ); ?></span> 75 <span class="screen-reader-text"><?php 76 /* translators: accessibility text */ 77 _e( 'Search installed themes…' ); 78 ?></span> 76 79 <input type="text" id="themes-filter" placeholder="<?php esc_attr_e( 'Search installed themes…' ); ?>" /> 77 80 </label></p> 78 81 <?php endif; ?> -
src/wp-includes/customize/class-wp-widget-area-customize-control.php
64 64 <span class="reorder"><?php _ex( 'Reorder', 'Reorder widgets in Customizer' ); ?></span> 65 65 <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering widgets in Customizer' ); ?></span> 66 66 </button> 67 <p class="screen-reader-text" id="<?php echo esc_attr( $id ); ?>"><?php _e( 'When in reorder mode, additional controls to reorder widgets will be available in the widgets list above.' ); ?></p> 67 <p class="screen-reader-text" id="<?php echo esc_attr( $id ); ?>"><?php 68 /* translators: accessibility text */ 69 _e( 'When in reorder mode, additional controls to reorder widgets will be available in the widgets list above.' ); 70 ?></p> 68 71 <?php 69 72 } 70 73 } -
src/wp-includes/functions.php
5078 5078 <div id="wp-auth-check-wrap" class="<?php echo $wrap_class; ?>"> 5079 5079 <div id="wp-auth-check-bg"></div> 5080 5080 <div id="wp-auth-check"> 5081 <button type="button" class="wp-auth-check-close button-link"><span class="screen-reader-text"><?php _e( 'Close dialog' ); ?></span></button> 5081 <button type="button" class="wp-auth-check-close button-link"><span class="screen-reader-text"><?php 5082 /* translators: accessibility text */ 5083 _e( 'Close dialog' ); 5084 ?></span></button> 5082 5085 <?php 5083 5086 5084 5087 if ( $same_domain ) { -
src/wp-includes/media-template.php
69 69 h = Math.ceil( ( data.model.height * w ) / data.model.width ); 70 70 } else { 71 71 h = data.model.height; 72 72 } 73 73 74 74 if ( w ) { 75 75 w_rule = 'width: ' + w + 'px; '; … … 163 163 164 164 <script type="text/html" id="tmpl-media-modal"> 165 165 <div class="<?php echo $class; ?>"> 166 <button type="button" class="button-link media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php _e( 'Close media panel' ); ?></span></span></button> 166 <button type="button" class="button-link media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php 167 /* translators: accessibility text */ 168 _e( 'Close media panel' ); 169 ?></span></span></button> 167 170 <div class="media-modal-content"></div> 168 171 </div> 169 172 <div class="media-modal-backdrop"></div> … … 184 187 <script type="text/html" id="tmpl-uploader-inline"> 185 188 <# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #> 186 189 <# if ( data.canClose ) { #> 187 <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close uploader' ); ?></span></button> 190 <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php 191 /* translators: accessibility text */ 192 _e( 'Close uploader' ); 193 ?></span></button> 188 194 <# } #> 189 195 <div class="uploader-inline-content {{ messageClass }}"> 190 196 <# if ( data.message ) { #> … … 249 255 250 256 <script type="text/html" id="tmpl-media-library-view-switcher"> 251 257 <a href="<?php echo esc_url( add_query_arg( 'mode', 'list', $_SERVER['REQUEST_URI'] ) ) ?>" class="view-list"> 252 <span class="screen-reader-text"><?php _e( 'List View' ); ?></span> 258 <span class="screen-reader-text"><?php 259 /* translators: accessibility text */ 260 _e( 'List View' ); 261 ?></span> 253 262 </a> 254 263 <a href="<?php echo esc_url( add_query_arg( 'mode', 'grid', $_SERVER['REQUEST_URI'] ) ) ?>" class="view-grid current"> 255 <span class="screen-reader-text"><?php _e( 'Grid View' ); ?></span> 264 <span class="screen-reader-text"><?php 265 _e( 'Grid View' ); 266 ?></span> 256 267 </a> 257 268 </script> 258 269 259 270 <script type="text/html" id="tmpl-uploader-status"> 260 271 <h2><?php _e( 'Uploading' ); ?></h2> 261 <button type="button" class="button-link upload-dismiss-errors"><span class="screen-reader-text"><?php _e( 'Dismiss Errors' ); ?></span></button> 272 <button type="button" class="button-link upload-dismiss-errors"><span class="screen-reader-text"><?php 273 /* translators: accessibility text */ 274 _e( 'Dismiss Errors' ); 275 ?></span></button> 262 276 263 277 <div class="media-progress-bar"><div></div></div> 264 278 <div class="upload-details"> … … 278 292 279 293 <script type="text/html" id="tmpl-edit-attachment-frame"> 280 294 <div class="edit-media-header"> 281 <button class="left dashicons <# if ( ! data.hasPrevious ) { #> disabled <# } #>"><span class="screen-reader-text"><?php _e( 'Edit previous media item' ); ?></span></button> 282 <button class="right dashicons <# if ( ! data.hasNext ) { #> disabled <# } #>"><span class="screen-reader-text"><?php _e( 'Edit next media item' ); ?></span></button> 295 <button class="left dashicons <# if ( ! data.hasPrevious ) { #> disabled <# } #>"><span class="screen-reader-text"><?php 296 /* translators: accessibility text */ 297 _e( 'Edit previous media item' ); 298 ?></span></button> 299 <button class="right dashicons <# if ( ! data.hasNext ) { #> disabled <# } #>"><span class="screen-reader-text"><?php 300 /* translators: accessibility text */ 301 _e( 'Edit next media item' ); 302 ?></span></button> 283 303 </div> 284 304 <div class="media-frame-title"></div> 285 305 <div class="media-frame-content"></div> … … 464 484 <# } #> 465 485 </div> 466 486 <# if ( data.buttons.close ) { #> 467 <button type="button" class="button-link attachment-close media-modal-icon"><span class="screen-reader-text"><?php _e( 'Remove' ); ?></span></button> 487 <button type="button" class="button-link attachment-close media-modal-icon"><span class="screen-reader-text"><?php 488 /* translators: accessibility text */ 489 _e( 'Remove' ); 490 ?></span></button> 468 491 <# } #> 469 492 </div> 470 493 <# if ( data.buttons.check ) { #> 471 <button type="button" class="button-link check" tabindex="-1"><span class="media-modal-icon"></span><span class="screen-reader-text"><?php _e( 'Deselect' ); ?></span></button> 494 <button type="button" class="button-link check" tabindex="-1"><span class="media-modal-icon"></span><span class="screen-reader-text"><?php 495 _e( 'Deselect' ); 496 ?></span></button> 472 497 <# } #> 473 498 <# 474 499 var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; -
src/wp-includes/widgets/class-wp-widget-archives.php
56 56 if ( $d ) { 57 57 $dropdown_id = "{$this->id_base}-dropdown-{$this->number}"; 58 58 ?> 59 <label class="screen-reader-text" for="<?php echo esc_attr( $dropdown_id ); ?>"><?php echo $title; ?></label> 59 <label class="screen-reader-text" for="<?php echo esc_attr( $dropdown_id ); ?>"><?php 60 /* translators: accessibility text */ 61 echo $title; 62 ?></label> 60 63 <select id="<?php echo esc_attr( $dropdown_id ); ?>" name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'> 61 64 <?php 62 65 /** -
src/wp-includes/widgets/class-wp-widget-categories.php
66 66 $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}"; 67 67 $first_dropdown = false; 68 68 69 /* translators: accessibility text */ 69 70 echo '<label class="screen-reader-text" for="' . esc_attr( $dropdown_id ) . '">' . $title . '</label>'; 70 71 71 72 $cat_args['show_option_none'] = __( 'Select Category' );