X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/849f15aeed7a5e39314057bdc0064d8edd60dd7d..5e031ad59895b5682d1509675cafe9f2c5081c12:/wp-admin/customize.php diff --git a/wp-admin/customize.php b/wp-admin/customize.php index 178db282..c8bd6e3c 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -71,7 +71,7 @@ $body_class = 'wp-core-ui wp-customizer js'; if ( wp_is_mobile() ) : $body_class .= ' mobile'; - ?>">
-
-
- is_theme_active() ? __( 'Save & Publish' ) : __( 'Save & Activate' ); - submit_button( $save_text, 'primary save', 'save', false ); - ?> - - - - - +
+ is_theme_active() ? __( 'Save & Publish' ) : __( 'Save & Activate' ); + submit_button( $save_text, 'primary save', 'save', false ); + ?> + + + + + + + + + +
+
+ +
- theme()->get_screenshot(); - $cannot_expand = ! ( $wp_customize->is_theme_active() || $screenshot || $wp_customize->theme()->get('Description') ); - ?> -
-
+
is_theme_active() ) { - /* translators: %s is the theme name in the Customize/Live Preview pane */ - echo sprintf( __( 'You are previewing %s' ), '' . $wp_customize->theme()->display('Name') . '' ); - } else { - /* translators: %s is the site/panel title in the Customize pane */ - echo sprintf( __( 'You are customizing %s' ), '' . get_bloginfo( 'name' ) . '' ); - } + echo sprintf( __( 'You are customizing %s' ), '' . get_bloginfo( 'name' ) . '' ); ?>
- -
- is_theme_active() ) : - if ( $screenshot ) : ?> - - - - theme()->get('Description') ): ?> -
theme()->display('Description'); ?>
- -
- +
@@ -242,7 +228,7 @@ do_action( 'customize_controls_print_scripts' ); 'url' => array( 'preview' => esc_url_raw( $url ? $url : home_url( '/' ) ), 'parent' => esc_url_raw( admin_url() ), - 'activated' => esc_url_raw( admin_url( 'themes.php?activated=true&previewed' ) ), + 'activated' => esc_url_raw( home_url( '/' ) ), 'ajax' => esc_url_raw( admin_url( 'admin-ajax.php', 'relative' ) ), 'allowed' => array_map( 'esc_url_raw', $allowed_urls ), 'isCrossDomain' => $cross_domain, @@ -271,6 +257,7 @@ do_action( 'customize_controls_print_scripts' ); $settings['settings'][ $id ] = array( 'value' => $setting->js_value(), 'transport' => $setting->transport, + 'dirty' => $setting->dirty, ); }