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:
Dominik Schilling (ocean90)
2014-10-15 17:20:34 +00:00
parent 56c82e534f
commit ab128698ad
22 changed files with 66 additions and 66 deletions

View File

@@ -16,7 +16,7 @@ window.wp = window.wp || {};
* By default, any element in the body with the load-customize class will open
* an iframe overlay with the URL specified.
*
* e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open customizer</a>
* e.g. <a class="load-customize" href="<?php echo wp_customize_url(); ?>">Open Customizer</a>
*
* @augments wp.customize.Events
*/
@@ -45,7 +45,7 @@ window.wp = window.wp || {};
$('#wpbody').on( 'click', '.load-customize', function( event ) {
event.preventDefault();
// Store a reference to the link that opened the customizer.
// Store a reference to the link that opened the Customizer.
Loader.link = $(this);
// Load the theme.
Loader.open( Loader.link.attr('href') );
@@ -90,7 +90,7 @@ window.wp = window.wp || {};
},
/**
* Open the customizer overlay for a specific URL.
* Open the Customizer overlay for a specific URL.
*
* @param string src URL to load in the Customizer.
*/
@@ -108,7 +108,7 @@ window.wp = window.wp || {};
this.active = true;
this.body.addClass('customize-loading');
// Dirty state of customizer in iframe
// Dirty state of Customizer in iframe
this.saved = new api.Value( true );
this.iframe = $( '<iframe />', { src: src }).appendTo( this.element );
@@ -170,7 +170,7 @@ window.wp = window.wp || {};
},
/**
* Callback after the customizer has been opened.
* Callback after the Customizer has been opened.
*/
opened: function() {
Loader.body.addClass( 'customize-active full-overlay-active' );
@@ -184,7 +184,7 @@ window.wp = window.wp || {};
return;
}
// Display AYS dialog if customizer is dirty
// Display AYS dialog if Customizer is dirty
if ( ! this.saved() && ! confirm( Loader.settings.l10n.saveAlert ) ) {
// Go forward since Customizer is exited by history.back()
history.forward();
@@ -202,7 +202,7 @@ window.wp = window.wp || {};
},
/**
* Callback after the customizer has been closed.
* Callback after the Customizer has been closed.
*/
closed: function() {
Loader.iframe.remove();