[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 Feb 25 21:45:42 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:       
--------------------------+-------------------------------------------------
 Inspired by #12229.

 Basically we should do:

 {{{<?php if ( apply_filters('enable_configuration_of_update_services',
 true) ) { }}}

 rather than

 {{{<?php if ( !is_multisite() || ( defined( 'UPDATE_SERVICES' ) &&
 UPDATE_SERVICES ) ) { }}}

 We don't need to make this check multisite specific.

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


More information about the wp-trac mailing list