[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 17:06:00 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 jeremyfelt):

 Good catch. New diff attached with fixed function that handles 0 correctly
 for both {{{$value}}} and {{{$placeholder}}}.

 I think the benefit comes when writing several input fields for meta
 boxes. Would make code cleaner to read and easier to keep consistent.

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


More information about the wp-trac mailing list