mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
* 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. git-svn-id: https://develop.svn.wordpress.org/trunk@20802 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1589,10 +1589,12 @@ add_action( 'plugins_loaded', '_wp_customize_include' );
|
||||
* @since 3.4.0
|
||||
*/
|
||||
function _wp_customize_loader_localize() {
|
||||
wp_localize_script( 'customize-loader', 'wpCustomizeLoaderL10n', array(
|
||||
'back' => sprintf( __( '← Return to %s' ), get_admin_page_title() ),
|
||||
'url' => admin_url( 'admin.php' ),
|
||||
) );
|
||||
$l10n = array( 'url' => admin_url( 'admin.php' ) );
|
||||
|
||||
if ( is_admin() )
|
||||
$l10n[ 'back' ] = sprintf( __( '← Return to %s' ), get_admin_page_title() );
|
||||
|
||||
wp_localize_script( 'customize-loader', 'wpCustomizeLoaderL10n', $l10n );
|
||||
}
|
||||
add_action( 'admin_enqueue_scripts', '_wp_customize_loader_localize' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user