This commit is contained in:
Timmy Crawford 2019-07-17 08:07:57 -07:00 committed by GitHub
parent 88c36e3794
commit d62e3baed5
1 changed files with 6 additions and 0 deletions

View File

@ -336,6 +336,12 @@ class WC_Admin_Page_Controller {
$is_connected_page = isset( $current_page['js_page'] ) ? ! $current_page['js_page'] : true;
}
// Disable embed on the block editor.
$current_screen = get_current_screen();
if ( method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor() ) {
$is_connected_page = false;
}
/**
* Whether or not the current page is an existing page connected to this controller.
*