[wp-trac] Re: [WordPress Trac] #9152: Custom header from theme A used when previewing theme B

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 19 01:34:23 GMT 2009


#9152: Custom header from theme A used when previewing theme B
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  westi                  
     Type:  defect (bug)  |      Status:  assigned               
 Priority:  normal        |   Milestone:  2.8                    
Component:  Themes        |     Version:  2.7                    
 Severity:  normal        |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------

Comment(by Viper007Bond):

 Ooooh, I think I just realized what the problem is. The theme you're
 previewing doesn't have a custom header, does it?

 If not, that means `get_option('mod_PreviewTheme')` returns `false`. That
 makes the filter not kick into effect and abort the
 `get_option('mod_CurrentTheme')`.

 Looks like rather than showing the previewed theme's custom header when
 previewing it, we'll have to display just the default version of the theme
 at all themes.

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


More information about the wp-trac mailing list