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

WordPress Trac noreply at wordpress.org
Sun May 3 17:30:19 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:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by azaozz):

 I'm actually not sure this is a good idea. Look at how unreadable
 `submit_button()` and `get_submit_button()` can be in some cases...
 Frankly I don't see any advantage in having them. Just one more thing to
 look up while trying to read the code.

 The same applies for the HTML attributes. In addition having the escape
 functions in there means some things will be double escaped and some
 things will not be escaped properly.

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


More information about the wp-trac mailing list