[wp-trac] [WordPress Trac] #12381: Switch away from constants to filters for {en|dis}abling and configuring features

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 11 22:07:28 UTC 2010


#12381: Switch away from constants to filters for {en|dis}abling and configuring
features
--------------------------+-------------------------------------------------
 Reporter:  westi         |       Owner:  westi
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  3.0  
Component:  General       |     Version:  3.0  
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by westi):

 Replying to [comment:9 Denis-de-Bernardy]:
 > Replying to [comment:8 nacin]:
 > > (In [13526]) Add __return_true() to complement __return_false(). see
 #12381
 >
 > how about renaming those two functions as simply true() and false().

 Because I prefer to name the functions with a clear meaning so that it is
 obvious that you are calling a function.

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


More information about the wp-trac mailing list