WordPress.org

Make WordPress Core

Ticket #21338: 21338.2.patch

File 21338.2.patch, 1.1 KB (added by SergeyBiryukov, 6 years ago)
  • wp-admin/includes/widgets.php

     
    179179        <div class="widget-top">
    180180        <div class="widget-title-action">
    181181                <a class="widget-action hide-if-no-js" href="#available-widgets"></a>
    182                 <a class="widget-control-edit hide-if-js" href="<?php echo esc_url( add_query_arg( $query_arg ) ); ?>"><span class="edit"><?php _e('Edit'); ?></span><span class="add"><?php _e('Add'); ?></span></a>
     182                <a class="widget-control-edit hide-if-js" href="<?php echo esc_url( add_query_arg( $query_arg ) ); ?>">
     183                        <span class="edit"><?php _e( 'Edit' ); ?><legend class="screen-reader-text"><span><?php printf( __( 'Edit %s' ), $widget_title ); ?></span></legend></span>
     184                        <span class="add"><?php _e( 'Add' ); ?><legend class="screen-reader-text"><span><?php printf( __( 'Add %s' ), $widget_title ); ?></span></legend></span>
     185                </a>
    183186        </div>
    184187        <div class="widget-title"><h4><?php echo $widget_title ?><span class="in-widget-title"></span></h4></div>
    185188        </div>