[wp-trac] Re: [WordPress Trac] #7008: CUSTOM_OPTION_TABLE is there any possibility?

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 17:49:58 GMT 2009


#7008: CUSTOM_OPTION_TABLE is there any possibility?
-----------------------------+----------------------------------------------
 Reporter:  link2caro        |       Owner:  anonymous                    
     Type:  feature request  |      Status:  new                          
 Priority:  high             |   Milestone:  2.9                          
Component:  Optimization     |     Version:  2.6.1                        
 Severity:  normal           |    Keywords:  dev-feedback has-patch tested
-----------------------------+----------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  dev-feedback needs-patch => dev-feedback has-patch tested


Comment:

 Patch attached, but I'm curious to understand how it actually helps in any
 meaningful way.

 Specifically, I take it that you want to add a condition in the wp-config
 file based on the user-agent. But what's really needed is a means to flush
 the filters altogether.

 For this, you could hook onto plugins_loaded, and do something like:

 {{{
 global $wp_filters;
 $wp_filters = array(); // or reset the ones that bother you, such as
 the_title and the_content
 include the default filters file
 and then add your own based on the user agent...
 }}}

 so has patch, but suggesting invalid for this reason.

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


More information about the wp-trac mailing list