mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Customizer: Use the sandbox
attribute to prevent top navigation from the preview.
Props valchovski. Fixes #42341. Built from https://develop.svn.wordpress.org/trunk@44583 git-svn-id: http://core.svn.wordpress.org/trunk@44414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b083cc65aa
commit
51f4314441
@ -6289,6 +6289,7 @@
|
||||
name: 'customize-' + previewFrame.channel()
|
||||
} );
|
||||
previewFrame.iframe.attr( 'onmousewheel', '' ); // Workaround for Safari bug. See WP Trac #38149.
|
||||
previewFrame.iframe.attr( 'sandbox', 'allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts' );
|
||||
|
||||
if ( ! hasPendingChangesetUpdate ) {
|
||||
previewFrame.iframe.attr( 'src', urlParser.href );
|
||||
|
4
wp-admin/js/customize-controls.min.js
vendored
4
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -379,11 +379,6 @@
|
||||
queryParams.customize_messenger_channel = api.settings.channel;
|
||||
}
|
||||
element.search = $.param( queryParams );
|
||||
|
||||
// Prevent links from breaking out of preview iframe.
|
||||
if ( api.settings.channel ) {
|
||||
element.target = '_self';
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
2
wp-includes/js/customize-preview.min.js
vendored
2
wp-includes/js/customize-preview.min.js
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-beta1-44582';
|
||||
$wp_version = '5.1-beta1-44583';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user