[wp-trac] [WordPress Trac] #20439: Introduce __return_one function

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 13 20:16:40 UTC 2012


#20439: Introduce __return_one function
-----------------------------+------------------------------
 Reporter:  bananastalktome  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by nacin):

 We use 1 and 0 because it is easy to store in a DB field. In reality you
 can simply use `__return_true` and `__return_false`.

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


More information about the wp-trac mailing list