[wp-trac] Re: [WordPress Trac] #6718: Theme defined in a constant at the beginning of the script

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 21 07:47:21 GMT 2008


#6718: Theme defined in a constant at the beginning of the script
----------------------------------------------------+-----------------------
 Reporter:  kazdam                                  |        Owner:  anonymous
     Type:  defect                                  |       Status:  new      
 Priority:  normal                                  |    Milestone:  2.7      
Component:  General                                 |      Version:           
 Severity:  normal                                  |   Resolution:           
 Keywords:  plugin development theme constant path  |  
----------------------------------------------------+-----------------------
Comment (by kazdam):

 Doesn't agree. The Theme Switcher Plugin is changing the theme based on
 the user cookies. It doesn't require any informations about the page we're
 on and the post informations.

 The theme folder is based on a constant defined at the very beginning,
 even before we know in what kind of page we are.
 The only possibility to change it would be to get the post informations in
 the theme and so we should define the template as we want.

 But that would be completely insane. Plugins should not need to redefine
 every information provided after by the script as they're supposed only to
 use those informations ...

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


More information about the wp-trac mailing list