WP 5.3 update, SEO Pages and Enfold theme

There is a conflict with the Theme (“Enfold”) using a custom post type not using the Gutenberg editor (WordPress 5.x ‘s default editor).

A user provided the following code added to their child theme’s functions.php file

/*  */
function change_editor_for_store_pages() {
global $wp_post_types, $wp_rewrite;
//
$object = get_post_type_object(‘store_page’);
$object->show_in_rest = true;
$object->supports = array(‘editor’);
//
$wp_rewrite->flush_rules();
}
add_action( ‘init’, ‘change_editor_for_store_pages’, 999 );
/* */