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

WordPress Trac noreply at wordpress.org
Tue Dec 10 15:22:53 UTC 2013


#25459: Provide more meaningful links in Edit Post/Page
-----------------------------------------------+---------------------------
 Reporter:  grahamarmfield                     |       Owner:
     Type:  enhancement                        |      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 GaryJ):

 Replying to [comment:46 grahamarmfield]:
 > Sorry, I don't feel that is an appropriate name at all. This function
 has nothing to do with alt text which many people would take to mean the
 `alt` attribute. You couldn't successfully use this function with `alt`
 text.

 The alt attribute provides a representation for screen readers of a visual
 asset. My `alt()` function provides a representation for screen readers of
 an uncontextual text string. There's a clear similarity between the two
 concepts, and any misunderstanding about it being something that helps
 provides image alt text would be wiped out when seeing the three lines of
 code that returns HTML. Core, plugin and theme authors would understand it
 fine, and a shorter, easily memorable, name makes it far more likely devs
 will use it, which is what you want.

 > The function was originally proposed to solve the problems of less-than-
 meaningful link text by providing a way to provide two strings.

 Sure, but neil_pie's solution takes the specific instance of text in
 links, and makes it a little more general, where it can be any bit of text
 that could be represented in an expanded way. It could still work for
 anchor text, for links, but gives flexibility to be re-used elsewhere too.

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


More information about the wp-trac mailing list