mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-20 09:00:15 +00:00
Customizer: Change instances of "Theme Customizer" to just "Customizer", as the Customizer isn't necessarily theme-specific.
Also capitalize "Customizer". See also https://make.wordpress.org/core/2014/07/08/customizer-improvements-in-4-0/. props studionashvegas, tareq1988. fixes #29947. git-svn-id: https://develop.svn.wordpress.org/trunk@29903 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -129,10 +129,10 @@ do_action( 'customize_controls_print_scripts' );
|
||||
$cannot_expand = ! ( $wp_customize->is_theme_active() || $screenshot || $wp_customize->theme()->get('Description') );
|
||||
?>
|
||||
|
||||
<div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the customizer for compat -->
|
||||
<div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat -->
|
||||
<div class="wp-full-overlay-sidebar-content accordion-container" tabindex="-1">
|
||||
<div id="customize-info" class="accordion-section <?php if ( $cannot_expand ) echo ' cannot-expand'; ?>">
|
||||
<div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Theme Customizer Options' ); ?>" tabindex="0">
|
||||
<div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>" tabindex="0">
|
||||
<span class="preview-notice"><?php
|
||||
if ( ! $wp_customize->is_theme_active() ) {
|
||||
/* translators: %s is the theme name in the Customize/Live Preview pane */
|
||||
@@ -189,7 +189,7 @@ do_action( 'customize_controls_print_scripts' );
|
||||
|
||||
/*
|
||||
* If the frontend and the admin are served from the same domain, load the
|
||||
* preview over ssl if the customizer is being loaded over ssl. This avoids
|
||||
* preview over ssl if the Customizer is being loaded over ssl. This avoids
|
||||
* insecure content warnings. This is not attempted if the admin and frontend
|
||||
* are on different domains to avoid the case where the frontend doesn't have
|
||||
* ssl certs. Domain mapping plugins can allow other urls in these conditions
|
||||
@@ -226,7 +226,7 @@ do_action( 'customize_controls_print_scripts' );
|
||||
'customize-login' => 1
|
||||
), wp_login_url() );
|
||||
|
||||
// Prepare customizer settings to pass to Javascript.
|
||||
// Prepare Customizer settings to pass to Javascript.
|
||||
$settings = array(
|
||||
'theme' => array(
|
||||
'stylesheet' => $wp_customize->get_stylesheet(),
|
||||
|
||||
@@ -2029,7 +2029,7 @@ final class WP_Internal_Pointers {
|
||||
}
|
||||
|
||||
$content = '<h3>' . __( 'New Feature: Live Widget Previews' ) . '</h3>';
|
||||
$content .= '<p>' . __( 'Add, edit, and play around with your widgets from the theme customizer.' ) . ' ' . __( 'Preview your changes in real-time and only save them when you’re ready.' ) . '</p>';
|
||||
$content .= '<p>' . __( 'Add, edit, and play around with your widgets from the Customizer.' ) . ' ' . __( 'Preview your changes in real-time and only save them when you’re ready.' ) . '</p>';
|
||||
|
||||
if ( 'themes' === get_current_screen()->id ) {
|
||||
$selector = '.theme.active .customize';
|
||||
|
||||
@@ -832,7 +832,7 @@
|
||||
// Limit the URL to internal, front-end links.
|
||||
//
|
||||
// If the frontend and the admin are served from the same domain, load the
|
||||
// preview over ssl if the customizer is being loaded over ssl. This avoids
|
||||
// preview over ssl if the Customizer is being loaded over ssl. This avoids
|
||||
// insecure content warnings. This is not attempted if the admin and frontend
|
||||
// are on different domains to avoid the case where the frontend doesn't have
|
||||
// ssl certs.
|
||||
@@ -984,7 +984,7 @@
|
||||
api.settings = window._wpCustomizeSettings;
|
||||
api.l10n = window._wpCustomizeControlsL10n;
|
||||
|
||||
// Check if we can run the customizer.
|
||||
// Check if we can run the Customizer.
|
||||
if ( ! api.settings )
|
||||
return;
|
||||
|
||||
|
||||
@@ -691,7 +691,7 @@
|
||||
},
|
||||
|
||||
/**
|
||||
* Highlight widgets in preview when interacted with in the customizer
|
||||
* Highlight widgets in preview when interacted with in the Customizer
|
||||
*/
|
||||
_setupHighlightEffects: function() {
|
||||
var self = this;
|
||||
@@ -1494,7 +1494,7 @@
|
||||
} );
|
||||
|
||||
/**
|
||||
* Expand other customizer sidebar section when dragging a control widget over it,
|
||||
* Expand other Customizer sidebar section when dragging a control widget over it,
|
||||
* allowing the control to be dropped into another section
|
||||
*/
|
||||
this.$controlSection.find( '.accordion-section-title' ).droppable({
|
||||
|
||||
Reference in New Issue
Block a user