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

WordPress Trac noreply at wordpress.org
Sat Nov 30 16:24:30 UTC 2013


#25459: Provide more meaningful links in Edit Post/Page
-------------------------------------+-----------------------------
 Reporter:  grahamarmfield           |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  low                      |   Milestone:  Future Release
Component:  Accessibility            |     Version:  3.6.1
 Severity:  minor                    |  Resolution:
 Keywords:  needs-patch i18n-change  |
-------------------------------------+-----------------------------

Comment (by grahamarmfield):

 There are two functions now, one to directly echo the two strings -
 a11y_short_long(), and one to simply return the value for use elsewhere -
 get_a11y_short_long()

 I've also placed the short parameter first and changed the name, to
 reflect the order in that the strings are output.

 Functions are as follows:
 {{{
 function get_a11y_short_long( $shortform, $longform, $classname = 'screen-
 reader-text' ) {
    return '<span aria-hidden="true">' . $shortform . '</span><span
 class="' . $classname . '"> ' . $longform . '</span>';
 }

 function a11y_short_long( $shortform, $longform, $classname = 'screen-
 reader-text' ) {
    echo get_a11y_short_long( $shortform, $longform, $classname);
 }
 }}}

 Now working on patch for the meta boxes.

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


More information about the wp-trac mailing list