Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #22252


Ignore:
Timestamp:
10/22/2012 03:30:08 AM (11 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22252 – Description

    v1 v2  
    11'''Problem:'''
     2
    23It's possible for the active theme and it's roots to become out of sync when performing a specific set of actions, resulting in the site white-screening because of the active theme directory being incorrect.
    34
     
    2122* wp-includes/theme.php:719 calls switch_theme()
    2223* wp-includes/theme.php 682 counts $wp_theme_directories, and skips the roots.
    23 * This results in the _root options pointing to /plugins/buddypress/bp-themes', and the current stylesheet and template being set as 'twentytwelve'.
     24* This results in the _root options pointing to '/plugins/buddypress/bp-themes', and the current stylesheet and template being set as 'twentytwelve'.
    2425* If you re-activate !BuddyPress, $wp_theme_directories will now be greater than 1, and the _root options will not get updated.
    2526----