Merge pull request #24935 from woocommerce/fix/24845-wpcom-customizer

Do not run send_frame_options_header when on the customizer
This commit is contained in:
Claudio Sanches 2019-12-05 20:28:55 -03:00 committed by GitHub
commit 4ea81923da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ add_action( 'template_redirect', 'wc_template_redirect' );
* @since 2.3.10 * @since 2.3.10
*/ */
function wc_send_frame_options_header() { function wc_send_frame_options_header() {
if ( is_checkout() || is_account_page() ) {
if ( ( is_checkout() || is_account_page() ) && ! is_customize_preview() ) {
send_frame_options_header(); send_frame_options_header();
} }
} }