WordPress.org

Make WordPress Core

Changeset 27196


Ignore:
Timestamp:
02/19/2014 10:43:55 PM (7 years ago)
Author:
johnbillion
Message:

Add screen-reader friendly variations of some short text links in the Publish meta box. Fixes #25459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r27079 r27196  
    8787</span>
    8888<?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?>
    89 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js"><?php _e('Edit') ?></a>
     89<a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit status' ); ?></span></a>
    9090
    9191<div id="post-status-select" class="hide-if-js">
     
    133133echo esc_html( $visibility_trans ); ?></span>
    134134<?php if ( $can_publish ) { ?>
    135 <a href="#visibility" class="edit-visibility hide-if-no-js"><?php _e('Edit'); ?></a>
     135<a href="#visibility" class="edit-visibility hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit visibility' ); ?></span></a>
    136136
    137137<div id="post-visibility-select" class="hide-if-js">
     
    193193    }
    194194?>
    195     <a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><?php _ex( 'Browse', 'revisions' ); ?></a>
     195    <a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><span aria-hidden="true"><?php _ex( 'Browse', 'revisions' ); ?></span> <span class="screen-reader-text"><?php _e( 'Browse revisions' ); ?></span></a>
    196196</div>
    197197<?php endif;
     
    201201    <span id="timestamp">
    202202    <?php printf($stamp, $date); ?></span>
    203     <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a>
     203    <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a>
    204204    <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'), 1); ?></div>
    205205</div><?php // /misc-pub-section ?>
Note: See TracChangeset for help on using the changeset viewer.