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:
commit
4ea81923da
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue