[wp-trac] [WordPress Trac] #25459: Provide more meaningful links in Edit Post/Page

WordPress Trac noreply at wordpress.org
Mon Oct 7 14:07:59 UTC 2013


#25459: Provide more meaningful links in Edit Post/Page
----------------------------+------------------------------
 Reporter:  grahamarmfield  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Accessibility   |     Version:  3.6.1
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by rianrietveld):

 So, our first #wpa11y comment on the WordCamp Europe contributors day :-)
 After a long discussion we concluded that a good solution might be the
 next one:
 Add inside the link a hidden text for screen readers

 in wp-admin/includes/meta-boxes.php change for the status:

 {{{
 <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>
 }}}

 change it into:

 {{{
 <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') ?><span class="screen-reader-text"> (<?php
 _e('Status') ?>)</span></a>
 }}}


 for visuality
 {{{
 <a href="#visibility" class="edit-visibility hide-if-no-js"><?php
 _e('Edit'); ?></a>
 }}}

 change it into:

 {{{
 <a href="#visibility" class="edit-visibility hide-if-no-js"><?php
 _e('Edit'); ?><span class="screen-reader-text"> (<?php _e('Visibility');
 ?>)</span></a>
 }}}

 An extra entry in the pot-file has to be made for Visibility without the :

 for date published
 {{{
 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"
 tabindex='4'><?php _e('Edit') ?></a>
 }}}

 change it into:

 {{{
 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"
 tabindex='4'><?php _e('Edit') ?><span class="screen-reader-text"> (<?php
 _e('Date'); ?>)</span></a>
 }}}


 In this way the construction will be valid for all languages, the visual
 output will be the same and one extra line will have to be added to the
 translation files.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25459#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list