Customizer: remove the title
attribute from the Preview html element while loading.
Props mehulkaklotar. Fixes #33250. git-svn-id: https://develop.svn.wordpress.org/trunk@35391 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1836e14bf2
commit
07041ae87c
@ -735,9 +735,6 @@ final class WP_Customize_Manager {
|
||||
'activePanels' => array(),
|
||||
'activeSections' => array(),
|
||||
'activeControls' => array(),
|
||||
'l10n' => array(
|
||||
'loading' => __( 'Loading...' ), // no ellipsis
|
||||
),
|
||||
);
|
||||
|
||||
if ( 2 == $this->nonce_tick ) {
|
||||
|
@ -124,11 +124,9 @@
|
||||
// Display a loading indicator when preview is reloading, and remove on failure.
|
||||
api.preview.bind( 'loading-initiated', function () {
|
||||
$( 'body' ).addClass( 'wp-customizer-unloading' );
|
||||
$( 'html' ).prop( 'title', api.settings.l10n.loading );
|
||||
});
|
||||
api.preview.bind( 'loading-failed', function () {
|
||||
$( 'body' ).removeClass( 'wp-customizer-unloading' );
|
||||
$( 'html' ).prop( 'title', '' );
|
||||
});
|
||||
|
||||
/* Custom Backgrounds */
|
||||
|
Loading…
Reference in New Issue
Block a user