Make WordPress Core

Changeset 22545


Ignore:
Timestamp:
11/11/2012 09:51:27 PM (12 years ago)
Author:
nacin
Message:

In switch_theme(), make sure there are no residual template_root or stylesheet_root options remaining if there is only one theme root registered. see #22252.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r22544 r22545  
    683683        update_option( 'template_root', get_raw_theme_root( $template, true ) );
    684684        update_option( 'stylesheet_root', get_raw_theme_root( $stylesheet, true ) );
     685    } else {
     686        delete_option( 'template_root' );
     687        delete_option( 'stylesheet_root' );
    685688    }
    686689
Note: See TracChangeset for help on using the changeset viewer.