[wp-meta] [Making WordPress.org] #3649: add new filter for attributes on link anchor elements in wporg-developer theme

Making WordPress.org noreply at wordpress.org
Thu Jun 7 14:46:13 UTC 2018


#3649: add new filter for attributes on link anchor elements in wporg-developer
theme
---------------------------------------+---------------------
 Reporter:  pbiron                     |       Owner:  (none)
     Type:  enhancement                |      Status:  new
 Priority:  normal                     |   Milestone:
Component:  Developer Hub              |  Resolution:
 Keywords:  has-patch has-screenshots  |
---------------------------------------+---------------------

Comment (by pbiron):

 Replying to [comment:4 pbiron]:
 > And the reason my patch introduces the `generate_link()` utility
 function is actually that I find the existing code pretty "unpoetic" by
 having 6 different places where an anchor tag is generated (5 of which use
 string concatenation, 1 of which uses `sprintf()` and only 3 of which
 `esc_url()` on the URL).

 That is, I think `generate_link()` would be good to have whether my
 proposal for an attribute filter is accepted or not.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3649#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list