diff --git a/lib/compat/wordpress-6.8/class-gutenberg-rest-static-templates-controller.php b/lib/compat/wordpress-6.8/class-gutenberg-rest-static-templates-controller.php index 06cac21908717b..f22db34e63921b 100644 --- a/lib/compat/wordpress-6.8/class-gutenberg-rest-static-templates-controller.php +++ b/lib/compat/wordpress-6.8/class-gutenberg-rest-static-templates-controller.php @@ -1,10 +1,6 @@ 0, - 'name' => $stylesheet, - 'slug' => $stylesheet, - 'taxonomy' => 'wp_theme', - ) - ), - ); - } - return $terms; -} - // We need to set the theme for the template when it's created. See: // https://github.com/WordPress/wordpress-develop/blob/b2c8d8d2c8754cab5286b06efb4c11e2b6aa92d5/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php#L571-L578 add_action( 'rest_pre_insert_wp_template', 'gutenberg_set_active_template_theme', 10, 2 ); diff --git a/test/e2e/specs/site-editor/template-registration.spec.js b/test/e2e/specs/site-editor/template-registration.spec.js index 05ae0638648406..91ca085cf91672 100644 --- a/test/e2e/specs/site-editor/template-registration.spec.js +++ b/test/e2e/specs/site-editor/template-registration.spec.js @@ -126,7 +126,6 @@ test.describe( 'Block template registration', () => { page, blockTemplateRegistrationUtils, } ) => { - // Create a post. await admin.createNewPost(); await editor.insertBlock( { name: 'core/paragraph',