Changeset 31704
- Timestamp:
- 03/10/2015 09:19:14 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r31698 r31704 2024 2024 2025 2025 // Create the iframe and inject the html content. 2026 self.iframe = $( '<iframe />').appendTo( self.container );2026 self.iframe = $( '<iframe />', { 'title': api.l10n.previewIframeTitle } ).appendTo( self.container ); 2027 2027 2028 2028 // Bind load event after the iframe has been added to the page; … … 2056 2056 }; 2057 2057 2058 if ( this.triedLogin ) 2058 if ( this.triedLogin ) { 2059 2059 return reject(); 2060 } 2060 2061 2061 2062 // Check if we have an admin cookie. … … 2065 2066 var iframe; 2066 2067 2067 if ( '1' !== response ) 2068 if ( '1' !== response ) { 2068 2069 reject(); 2069 2070 iframe = $('<iframe src="' + self.previewUrl() + '" />').hide(); 2070 } 2071 2072 iframe = $( '<iframe />', { 'src': self.previewUrl(), 'title': api.l10n.previewIframeTitle } ).hide(); 2071 2073 iframe.appendTo( self.container ); 2072 2074 iframe.load( function() { … … 2328 2330 }); 2329 2331 2330 iframe = $( '<iframe src="' + api.settings.url.login + '" />').appendTo( this.container );2332 iframe = $( '<iframe />', { 'src': api.settings.url.login, 'title': api.l10n.loginIframeTitle } ).appendTo( this.container ); 2331 2333 2332 2334 messenger.targetWindow( iframe[0].contentWindow ); -
trunk/src/wp-admin/theme-install.php
r31497 r31704 261 261 </div> 262 262 <div class="wp-full-overlay-main"> 263 <iframe src="{{ data.preview_url }}" />263 <iframe src="{{ data.preview_url }}" title="<?php esc_attr_e( 'Preview' ); ?>" /> 264 264 </div> 265 265 </script> -
trunk/src/wp-includes/js/customize-loader.js
r30306 r31704 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 -
trunk/src/wp-includes/script-loader.php
r31597 r31704 390 390 $scripts->add( 'customize-controls', "/wp-admin/js/customize-controls$suffix.js", array( 'customize-base' ), false, 1 ); 391 391 did_action( 'init' ) && $scripts->localize( 'customize-controls', '_wpCustomizeControlsL10n', array( 392 'activate' => __( 'Save & Activate' ), 393 'save' => __( 'Save & Publish' ), 394 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 395 'saved' => __( 'Saved' ), 396 'cancel' => __( 'Cancel' ), 397 'close' => __( 'Close' ), 398 'cheatin' => __( 'Cheatin’ uh?' ), 392 'activate' => __( 'Save & Activate' ), 393 'save' => __( 'Save & Publish' ), 394 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 395 'saved' => __( 'Saved' ), 396 'cancel' => __( 'Cancel' ), 397 'close' => __( 'Close' ), 398 'cheatin' => __( 'Cheatin’ uh?' ), 399 'previewIframeTitle' => __( 'Site Preview' ), 400 'loginIframeTitle' => __( 'Session expired' ), 399 401 400 402 // Used for overriding the file types allowed in plupload. -
trunk/src/wp-includes/theme.php
r31681 r31704 1964 1964 'browser' => $browser, 1965 1965 'l10n' => array( 1966 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 1966 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), 1967 'mainIframeTitle' => __( 'Customizer' ), 1967 1968 ), 1968 1969 );
Note: See TracChangeset
for help on using the changeset viewer.