diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index efb82399ed688..ee15578d4b0af 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -6430,6 +6430,14 @@ function wp_set_up_cross_origin_isolation(): void { return; } + // Skip when a third-party page builder overrides the block editor. + // DIP isolates the document into its own agent cluster, + // which blocks same-origin iframe access that these editors rely on. + // phpcs:ignore WordPress.Security.NonceVerification.Recommended + if ( isset( $_GET['action'] ) && 'edit' !== $_GET['action'] ) { + return; + } + // Cross-origin isolation is not needed if users can't upload files anyway. if ( ! current_user_can( 'upload_files' ) ) { return;