Make WordPress Core


Ignore:
Timestamp:
05/16/2012 05:55:54 AM (13 years ago)
Author:
koopersmith
Message:

Theme Customizer: Properly change state when theme is switched. fixes #20610, see #19910.

  • Causes the Manage Themes page to refresh if the customizer is closed after the active theme is switched.
  • Changes the text of the 'Save and Activate' button once the theme has been activated.
  • Improves the naming of the customize control settings.
  • Add events to customize.Loader and make callbacks more flexible.
  • Makes the customize-loader l10n compatible with non-admin settings.
  • Adds WP_Customize->is_current_theme_active().
  • Minor style corrections, including jQuery.attr/prop changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize.php

    r20794 r20802  
    143143
    144144        do_action( 'stop_previewing_theme', $this );
     145    }
     146
     147    /**
     148     * Checks if the current theme is active.
     149     *
     150     * @since 3.4.0
     151     */
     152    public function is_current_theme_active() {
     153        return $this->get_stylesheet() == $this->original_stylesheet;
    145154    }
    146155
Note: See TracChangeset for help on using the changeset viewer.