-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken the post-template-editor test. (#32904)
* Change to a theme that supports block-templates, and then delete wp_template and wp_template_part posts. * add plugin for switch add_theme_support('block-templates') * Update packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl> * Update packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>
- Loading branch information
1 parent
debe6cd
commit 7a050ac
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/** | ||
* Plugin Name: Gutenberg Test Block Templates | ||
* Plugin URI: https://github.com/WordPress/gutenberg | ||
* Author: Gutenberg Team | ||
* | ||
* @package gutenberg-test-block-templates | ||
*/ | ||
|
||
/** | ||
* Activate Block Templates. | ||
*/ | ||
function enqueue_block_templates() { | ||
add_theme_support( 'block-templates' ); | ||
} | ||
|
||
add_action( 'setup_theme', 'enqueue_block_templates' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters