Ticket #31202: 31202.2.patch
File 31202.2.patch, 4.1 KB (added by , 10 years ago) |
---|
-
src/wp-admin/js/customize-controls.js
1535 1535 response = response.slice( 0, index ) + response.slice( index + signature.length ); 1536 1536 1537 1537 // Create the iframe and inject the html content. 1538 self.iframe = $('<iframe />' ).appendTo( self.container );1538 self.iframe = $('<iframe />', { 'title': wp.customize.l10n.previewIframeTitle } ).appendTo( self.container ); 1539 1539 1540 1540 // Bind load event after the iframe has been added to the page; 1541 1541 // otherwise it will fire when injected into the DOM. … … 1579 1579 if ( '1' !== response ) 1580 1580 reject(); 1581 1581 1582 iframe = $('<iframe src="' + self.previewUrl() + '" />').hide();1582 iframe = $('<iframe src="' + self.previewUrl() + '" title="' + wp.customize.l10n.previewIframeTitle + '" />').hide(); 1583 1583 iframe.appendTo( self.container ); 1584 1584 iframe.load( function() { 1585 1585 self.triedLogin = true; … … 1833 1833 url: api.settings.url.login 1834 1834 }); 1835 1835 1836 iframe = $('<iframe src="' + api.settings.url.login + '" />').appendTo( this.container );1836 iframe = $('<iframe src="' + api.settings.url.login + '" title="' + api.l10n.loginIframeTitle + '" />').appendTo( this.container ); 1837 1837 1838 1838 messenger.targetWindow( iframe[0].contentWindow ); 1839 1839 -
src/wp-includes/js/customize-loader.js
114 114 // Dirty state of Customizer in iframe 115 115 this.saved = new api.Value( true ); 116 116 117 this.iframe = $( '<iframe />', { src: src }).appendTo( this.element );117 this.iframe = $( '<iframe />', { src: src, 'title': Loader.settings.l10n.mainIframeTitle }).appendTo( this.element ); 118 118 this.iframe.one( 'load', this.loaded ); 119 119 120 120 // Create a postMessage connection with the iframe. -
src/wp-includes/script-loader.php
386 386 $scripts->add( 'customize-views', "/wp-includes/js/customize-views.js", array( 'jquery', 'underscore', 'imgareaselect', 'customize-models' ), false, 1 ); 387 387 $scripts->add( 'customize-controls', "/wp-admin/js/customize-controls$suffix.js", array( 'customize-base' ), false, 1 ); 388 388 did_action( 'init' ) && $scripts->localize( 'customize-controls', '_wpCustomizeControlsL10n', array( 389 'activate' => __( 'Save & Activate' ), 390 'save' => __( 'Save & Publish' ), 391 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 392 'saved' => __( 'Saved' ), 393 'cancel' => __( 'Cancel' ), 394 'close' => __( 'Close' ), 395 'cheatin' => __( 'Cheatin’ uh?' ), 389 'activate' => __( 'Save & Activate' ), 390 'save' => __( 'Save & Publish' ), 391 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 392 'saved' => __( 'Saved' ), 393 'cancel' => __( 'Cancel' ), 394 'close' => __( 'Close' ), 395 'cheatin' => __( 'Cheatin’ uh?' ), 396 'previewIframeTitle' => __( 'Site preview' ), 397 'loginIframeTitle' => __( 'Session expired' ), 396 398 397 399 // Used for overriding the file types allowed in plupload. 398 400 'allowedFiles' => __( 'Allowed Files' ), -
src/wp-includes/theme.php
1960 1960 'isCrossDomain' => $cross_domain, 1961 1961 'browser' => $browser, 1962 1962 'l10n' => array( 1963 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 1963 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 1964 'mainIframeTitle' => __( 'Customizer' ), 1964 1965 ), 1965 1966 ); 1966 1967