[wp-trac] [WordPress Trac] #20110: Add a valued() function to encourage consistency in input fields

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 24 20:13:04 UTC 2012


#20110: Add a valued() function to encourage consistency in input fields
-----------------------------------+------------------------------
 Reporter:  jeremyfelt             |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Template               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:8 scribu]:
 > In general, let's not make the same mistake we made with
 submit_button()...
 > ...You get +100 psychic points if you can guess what those two false
 values represent...

 Agreed. Don't see a point in replacing simple HTML attributes with PHP
 functions that generate them. This type of functions would always need
 lots of args to be able to cover the more common cases which makes the
 code a lot harder to read. On top of that they usually don't cover all
 possible cases making them redundant.

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


More information about the wp-trac mailing list