From 47b5b384e5dae11e4b77c3b36b340e9cb9525c5c Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Mon, 15 Nov 2021 10:59:48 +0000 Subject: [PATCH] Editor: Load iframed assets in Site Editor Configure the Site Editor to load iframed block editor assets. This fixes some styling issues in the Site Editor. Follows [52069]. See #54337. git-svn-id: https://develop.svn.wordpress.org/trunk@52160 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-filters.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index 07ab2a5ed4..5c1ed7178a 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -582,6 +582,7 @@ add_action( 'wp_footer', 'wp_maybe_inline_styles', 1 ); // Run for late-loaded s add_action( 'admin_footer-post.php', 'wp_add_iframed_editor_assets_html' ); add_action( 'admin_footer-post-new.php', 'wp_add_iframed_editor_assets_html' ); add_action( 'admin_footer-widgets.php', 'wp_add_iframed_editor_assets_html' ); +add_action( 'admin_footer-site-editor.php', 'wp_add_iframed_editor_assets_html' ); add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 ); add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );