[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 19:36:24 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 scribu):

 In general, let's not make the same mistake we made with submit_button(),
 where we ended up with code like this:

 {{{
 submit_button( __( 'Apply' ), 'button-secondary action', false, false,
 array( 'id' => "doaction$two" ) );
 }}}

 You get +100 psychic points if you can guess what those two false values
 represent, without looking at the definition.

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


More information about the wp-trac mailing list