mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Theme Customizer: Display 'Save and Activate' when switching themes. Add and properties to the WP_Customize class. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
final class WP_Customize {
|
||||
protected $template;
|
||||
protected $stylesheet;
|
||||
protected $original_template;
|
||||
protected $original_stylesheet;
|
||||
|
||||
protected $previewing = false;
|
||||
|
||||
protected $settings = array();
|
||||
@@ -81,6 +84,9 @@ final class WP_Customize {
|
||||
|
||||
show_admin_bar( false );
|
||||
|
||||
$this->original_template = get_template();
|
||||
$this->original_stylesheet = get_stylesheet();
|
||||
|
||||
add_filter( 'template', array( $this, 'get_template' ) );
|
||||
add_filter( 'stylesheet', array( $this, 'get_stylesheet' ) );
|
||||
add_filter( 'pre_option_current_theme', array( $this, 'current_theme' ) );
|
||||
|
||||
Reference in New Issue
Block a user