[wp-trac] [WordPress Trac] #32192: Add HTML attribute builder helper function

WordPress Trac noreply at wordpress.org
Wed Apr 29 21:15:56 UTC 2015


#32192: Add HTML attribute builder helper function
-------------------------+------------------------------
 Reporter:  paulwilde    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  4.2.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by jdgrimes):

 Since you check `is_array( $attrs )`, is it still necessary to do `(array)
 $attrs` in the loop?

 Also, shouldn't `src` use `esc_url()` instead like for `href`?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32192#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list