diff --git a/includes/class-sensei-admin.php b/includes/class-sensei-admin.php index 89dcc0dcd7..7fb9e2414c 100755 --- a/includes/class-sensei-admin.php +++ b/includes/class-sensei-admin.php @@ -86,9 +86,6 @@ public function __construct() { // remove a course from course order when trashed add_action( 'transition_post_status', array( $this, 'remove_trashed_course_from_course_order' ) ); - // Add workaround for block editor bug on CPT pages. See the function doc for more information. - add_action( 'admin_footer', array( $this, 'output_cpt_block_editor_workaround' ) ); - // Add AJAX endpoint for event logging. add_action( 'wp_ajax_sensei_log_event', array( $this, 'ajax_log_event' ) ); @@ -1749,44 +1746,6 @@ public function notify_if_admin_email_not_real_admin_user() { } } - /** - * Adds a workaround for fixing an issue with CPT's in the block editor. - * - * See https://github.com/WordPress/gutenberg/pull/15375 - * - * Once that PR makes its way into WP Core, this function (and its - * attachment to the action in `__construct`) can be removed. - * - * @access private - * - * @since 2.1.0 - */ - public function output_cpt_block_editor_workaround() { - $screen = get_current_screen(); - - if ( ! ( method_exists( $screen, 'is_block_editor' ) && $screen->is_block_editor() ) ) { - return; - } - - ?> - -