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

WordPress Trac noreply at wordpress.org
Mon Dec 2 09:58:21 UTC 2013


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

Comment (by grahamarmfield):

 Replying to [comment:42 toscho]:
 > Many other `echo` wrappers do something special with the output (escape
 or remove parts) or they use `echo` depending on an argument (like
 `checked()`), that’s not the case here. Let’s wait until someone asks for
 it.

 OK, happy to lose the two function approach. I just want to get the ticket
 fixed in 3.8 if we can.

 > The other problem is the name. It doesn’t say what the function does or
 even what it is for. Maybe `get_aria_label_text()` or something similar? I
 would like to hear get others opinions.

 Take your point about the function name. Would really like to steer clear
 of putting aria and label together though since the `aria-label` idea is
 not the solution chosen here.

 The function takes a short-hand string and a long-hand string and wraps
 them in spans and then outputs them into a link, form label, button text,
 or wherever else.

 How about `get-formatted-short-long-text-for-a11y()`?

 One other question I had on adding a new function is who starts a codex
 page for it?

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


More information about the wp-trac mailing list