Make WordPress Core

Ticket #29748: 29748-wp-includes.patch

File 29748-wp-includes.patch, 27.8 KB (added by mercime, 9 years ago)

wp-includes - refreshed translator comments

  • src/wp-includes/admin-bar.php

     
    109109function wp_admin_bar_wp_menu( $wp_admin_bar ) {
    110110        $wp_admin_bar->add_menu( array(
    111111                'id'    => 'wp-logo',
     112                /* translators: accessibility text */
    112113                'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'About WordPress' ) . '</span>',
    113114                'href'  => self_admin_url( 'about.php' ),
    114115        ) );
     
    167168        if ( is_admin() ) {
    168169                $wp_admin_bar->add_menu( array(
    169170                        'id'    => 'menu-toggle',
     171                        /* translators: accessibility text */
    170172                        'title' => '<span class="ab-icon"></span><span class="screen-reader-text">' . __( 'Menu' ) . '</span>',
    171173                        'href'  => '#',
    172174                ) );
     
    697699
    698700        $icon  = '<span class="ab-icon"></span>';
    699701        $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 */
    700703        $title .= '<span class="screen-reader-text">' . $awaiting_text . '</span>';
    701704
    702705        $wp_admin_bar->add_menu( array(
     
    782785                return;
    783786
    784787        $title = '<span class="ab-icon"></span><span class="ab-label">' . number_format_i18n( $update_data['counts']['total'] ) . '</span>';
     788        /* translators: accessibility text */
    785789        $title .= '<span class="screen-reader-text">' . $update_data['title'] . '</span>';
    786790
    787791        $wp_admin_bar->add_menu( array(
     
    807811
    808812        $form  = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">';
    809813        $form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />';
     814        /* translators: accessibility text */
    810815        $form .= '<label for="adminbar-search" class="screen-reader-text">' . __( 'Search' ) . '</label>';
    811816        $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>';
    812817        $form .= '</form>';
  • src/wp-includes/class-wp-customize-nav-menus.php

     
    707707                                                </span>
    708708                                                <button type="button" class="button-link item-add">
    709709                                                        <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 */
    711711                                                                printf( __( 'Add to menu: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.type_label }}' );
    712712                                                        ?></span>
    713713                                                </button>
     
    743743                <div id="available-menu-items" class="accordion-container">
    744744                        <div class="customize-section-title">
    745745                                <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>
    747750                                </button>
    748751                                <h3>
    749752                                        <span class="customize-action">
     
    757760                        </div>
    758761                        <div id="available-menu-items-search" class="accordion-section cannot-expand">
    759762                                <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>
    761767                                        <input type="text" id="menu-items-search" placeholder="<?php esc_attr_e( 'Search menu items&hellip;' ) ?>" 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>
    763772                                        <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>
    765777                                </div>
    766778                                <ul class="accordion-section-content" data-type="search"></ul>
    767779                        </div>
     
    769781                                <h4 class="accordion-section-title" role="presentation">
    770782                                        <?php _e( 'Custom Links' ); ?>
    771783                                        <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>
    773788                                                <span class="toggle-indicator" aria-hidden="true"></span>
    774789                                        </button>
    775790                                </h4>
     
    803818                                                <span class="no-items"><?php _e( 'No items' ); ?></span>
    804819                                                <button type="button" class="button-link" aria-expanded="false">
    805820                                                        <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 */
    807822                                                        printf( __( 'Toggle section: %s' ), esc_html( $available_item_type['title'] ) ); ?></span>
    808823                                                        <span class="toggle-indicator" aria-hidden="true"></span>
    809824                                                </button>
  • src/wp-includes/class-wp-customize-panel.php

     
    325325                <script type="text/html" id="tmpl-customize-panel-<?php echo esc_attr( $this->type ); ?>">
    326326                        <?php $this->render_template(); ?>
    327327                </script>
    328         <?php
     328                <?php
    329329        }
    330330
    331331        /**
     
    344344                <li id="accordion-panel-{{ data.id }}" class="accordion-section control-section control-panel control-panel-{{ data.type }}">
    345345                        <h3 class="accordion-section-title" tabindex="0">
    346346                                {{ 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>
    348351                        </h3>
    349352                        <ul class="accordion-sub-container control-panel-content"></ul>
    350353                </li>
     
    365368        protected function content_template() {
    366369                ?>
    367370                <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>
    369375                        <div class="accordion-section-title">
    370376                                <span class="preview-notice"><?php
    371377                                        /* translators: %s: the site/panel title in the Customizer */
     
    372378                                        echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">{{ data.title }}</strong>' );
    373379                                ?></span>
    374380                                <# 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>
    376385                                <# } #>
    377386                        </div>
    378387                        <# if ( data.description ) { #>
  • src/wp-includes/class-wp-customize-section.php

     
    324324         * @see WP_Customize_Manager::render_template()
    325325         */
    326326        public function print_template() {
    327         ?>
     327                ?>
    328328                <script type="text/html" id="tmpl-customize-section-<?php echo $this->type; ?>">
    329329                        <?php $this->render_template(); ?>
    330330                </script>
    331         <?php
     331                <?php
    332332        }
    333333
    334334        /**
     
    347347                <li id="accordion-section-{{ data.id }}" class="accordion-section control-section control-section-{{ data.type }}">
    348348                        <h3 class="accordion-section-title" tabindex="0">
    349349                                {{ 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>
    351354                        </h3>
    352355                        <ul class="accordion-section-content">
    353356                                <li class="customize-section-description-container">
    354357                                        <div class="customize-section-title">
    355358                                                <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>
    357363                                                </button>
    358364                                                <h3>
    359365                                                        <span class="customize-action">
  • src/wp-includes/class-wp-customize-widgets.php

     
    765765                <div id="available-widgets">
    766766                        <div class="customize-section-title">
    767767                                <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>
    769771                                </button>
    770772                                <h3>
    771773                                        <span class="customize-action"><?php
     
    776778                                </h3>
    777779                        </div>
    778780                        <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>
    780785                                <input type="search" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets&hellip;' ) ?>" />
    781786                        </div>
    782787                        <div id="available-widgets-list">
     
    11081113         *
    11091114         * @since 3.9.0
    11101115         * @access public
    1111     *
     1116        *
    11121117         * @global array $wp_registered_sidebars
    11131118         * @global array $wp_registered_widgets
    11141119         */
  • src/wp-includes/class-wp-editor.php

     
    14101410                <form id="wp-link" tabindex="-1">
    14111411                <?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
    14121412                <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>
    14141417                <div id="link-selector">
    14151418                        <div id="link-options">
    14161419                                <p class="howto" id="wplink-enter-url"><?php _e( 'Enter the destination URL' ); ?></p>
     
    14451448                                <div id="most-recent-results" class="query-results" tabindex="0">
    14461449                                        <div class="query-notice" id="query-notice-message">
    14471450                                                <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>
    14491455                                        </div>
    14501456                                        <ul></ul>
    14511457                                        <div class="river-waiting">
    14521458                                                <span class="spinner"></span>
    14531459                                        </div>
    1454                                 </div>
    1455                         </div>
     1460                                </div>
     1461                        </div>
    14561462                </div>
    14571463                <div class="submitbox">
    14581464                        <div id="wp-link-cancel">
  • src/wp-includes/comment-template.php

     
    193193        $display = ($linktext != '') ? $linktext : $email;
    194194                $return  = $before;
    195195                $return .= sprintf( '<a href="%1$s">%2$s</a>', esc_url( 'mailto:' . $email ), esc_html( $display ) );
    196                 $return .= $after;
     196                $return .= $after;
    197197                return $return;
    198198        } else {
    199199                return '';
     
    14721472        $number = get_comments_number( $id );
    14731473
    14741474        if ( false === $zero ) {
    1475                 /* translators: %s: post title */
     1475                /* translators: accessiblity text: %s: post title */
    14761476                $zero = sprintf( __( 'No Comments<span class="screen-reader-text"> on %s</span>' ), $title );
    14771477        }
    14781478
    14791479        if ( false === $one ) {
    1480                 /* translators: %s: post title */
     1480                /* translators: accessibility text: %s: post title */
    14811481                $one = sprintf( __( '1 Comment<span class="screen-reader-text"> on %s</span>' ), $title );
    14821482        }
    14831483
    14841484        if ( false === $more ) {
    1485                 /* translators: 1: Number of comments 2: post title */
     1485                /* translators: 1: Number of comments 2: accessibility text: post title */
    14861486                $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 );
    14871487                $more = sprintf( $more, number_format_i18n( $number ), $title );
    14881488        }
    14891489
    14901490        if ( false === $none ) {
    1491                 /* translators: %s: post title */
     1491                /* translators: accessibility text: %s: post title */
    14921492                $none = sprintf( __( 'Comments Off<span class="screen-reader-text"> on %s</span>' ), $title );
    14931493        }
    14941494
  • src/wp-includes/customize/class-wp-customize-header-image-control.php

     
    103103                        <# } else { #>
    104104
    105105                        <# 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>
    107110                        <# } #>
    108111
    109112                        <button type="button" class="choice thumbnail"
    110113                                data-customize-image-value="{{{data.header.url}}}"
    111114                                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>
    113119                                <img src="{{{data.header.thumbnail_url}}}" alt="{{{data.header.alt_text || data.header.description}}}">
    114120                        </button>
    115121
  • src/wp-includes/customize/class-wp-customize-nav-menu-control.php

     
    5555                        <span class="reorder"><?php _ex( 'Reorder', 'Reorder menu items in Customizer' ); ?></span>
    5656                        <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering menu items in Customizer' ); ?></span>
    5757                </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>
    5962                <span class="menu-delete-item">
    6063                        <button type="button" class="button-link menu-delete">
    6164                                <?php _e( 'Delete Menu' ); ?>
  • src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php

     
    7373                                </span>
    7474                                <span class="item-controls">
    7575                                        <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 */
    7777                                                printf( __( 'Edit menu item: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' );
    7878                                        ?></span><span class="toggle-indicator" aria-hidden="true"></span></button>
    7979                                        <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 */
    8181                                                printf( __( 'Remove Menu Item: %1$s (%2$s)' ), '{{ data.title || wp.customize.Menus.data.l10n.untitled }}', '{{ data.item_type_label }}' );
    8282                                        ?></span></button>
    8383                                </span>
  • src/wp-includes/customize/class-wp-customize-nav-menus-panel.php

     
    7272                ?>
    7373                <li class="panel-meta customize-info accordion-section <# if ( ! data.description ) { #> cannot-expand<# } #>">
    7474                        <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>
    7679                        </button>
    7780                        <div class="accordion-section-title">
    7881                                <span class="preview-notice">
     
    8285                                        ?>
    8386                                </span>
    8487                                <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>
    8692                                </button>
    8793                                <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>
    8998                                </button>
    9099                        </div>
    91100                        <# if ( data.description ) { #>
  • src/wp-includes/customize/class-wp-customize-themes-section.php

     
    7272                                <div id="customize-container"></div>
    7373                                <?php if ( count( $this->controls ) > 4 ) : ?>
    7474                                        <p><label for="themes-filter">
    75                                                 <span class="screen-reader-text"><?php _e( 'Search installed themes&hellip;' ); ?></span>
     75                                                <span class="screen-reader-text"><?php
     76                                                        /* translators: accessibility text */
     77                                                        _e( 'Search installed themes&hellip;' );
     78                                                ?></span>
    7679                                                <input type="text" id="themes-filter" placeholder="<?php esc_attr_e( 'Search installed themes&hellip;' ); ?>" />
    7780                                        </label></p>
    7881                                <?php endif; ?>
  • src/wp-includes/customize/class-wp-widget-area-customize-control.php

     
    6464                        <span class="reorder"><?php _ex( 'Reorder', 'Reorder widgets in Customizer' ); ?></span>
    6565                        <span class="reorder-done"><?php _ex( 'Done', 'Cancel reordering widgets in Customizer' ); ?></span>
    6666                </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>
    6871                <?php
    6972        }
    7073}
  • src/wp-includes/functions.php

     
    50785078        <div id="wp-auth-check-wrap" class="<?php echo $wrap_class; ?>">
    50795079        <div id="wp-auth-check-bg"></div>
    50805080        <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>
    50825085        <?php
    50835086
    50845087        if ( $same_domain ) {
  • src/wp-includes/media-template.php

     
    6969                h = Math.ceil( ( data.model.height * w ) / data.model.width );
    7070        } else {
    7171                h = data.model.height;
    72         }
     72        }
    7373
    7474        if ( w ) {
    7575                w_rule = 'width: ' + w + 'px; ';
     
    163163
    164164        <script type="text/html" id="tmpl-media-modal">
    165165                <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>
    167170                        <div class="media-modal-content"></div>
    168171                </div>
    169172                <div class="media-modal-backdrop"></div>
     
    184187        <script type="text/html" id="tmpl-uploader-inline">
    185188                <# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #>
    186189                <# 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>
    188194                <# } #>
    189195                <div class="uploader-inline-content {{ messageClass }}">
    190196                <# if ( data.message ) { #>
     
    249255
    250256        <script type="text/html" id="tmpl-media-library-view-switcher">
    251257                <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>
    253262                </a>
    254263                <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>
    256267                </a>
    257268        </script>
    258269
    259270        <script type="text/html" id="tmpl-uploader-status">
    260271                <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>
    262276
    263277                <div class="media-progress-bar"><div></div></div>
    264278                <div class="upload-details">
     
    278292
    279293        <script type="text/html" id="tmpl-edit-attachment-frame">
    280294                <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>
    283303                </div>
    284304                <div class="media-frame-title"></div>
    285305                <div class="media-frame-content"></div>
     
    464484                                <# } #>
    465485                        </div>
    466486                        <# 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>
    468491                        <# } #>
    469492                </div>
    470493                <# 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>
    472497                <# } #>
    473498                <#
    474499                var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly';
  • src/wp-includes/widgets/class-wp-widget-archives.php

     
    5656                if ( $d ) {
    5757                        $dropdown_id = "{$this->id_base}-dropdown-{$this->number}";
    5858                        ?>
    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>
    6063                <select id="<?php echo esc_attr( $dropdown_id ); ?>" name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
    6164                        <?php
    6265                        /**
  • src/wp-includes/widgets/class-wp-widget-categories.php

     
    6666                        $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}";
    6767                        $first_dropdown = false;
    6868
     69                        /* translators: accessibility text */
    6970                        echo '<label class="screen-reader-text" for="' . esc_attr( $dropdown_id ) . '">' . $title . '</label>';
    7071
    7172                        $cat_args['show_option_none'] = __( 'Select Category' );