[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
Sat Feb 27 12:04:33 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 ocean90):

 And how we can enable it now?

 I try
 {{{
 function __return_true() {
     return true;
 }
 add_filter('enable_configuration_of_update_services', '__return_true');
 // or
 add_filter('enable_configuration_of_update_services', true);
 }}}

 But it doesn't appears.
 And if I change
 {{{
 <?php if ( apply_filters( 'enable_update_services_configuration', true) )
 { ?>
 }}}
 to
 {{{
 <?php if ( apply_filters( 'enable_update_services_configuration', false )
 ) { ?>
 }}}
 it's hide too.

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


More information about the wp-trac mailing list