Skip to content

Commit

Permalink
Update template-part to be registered just prior to WP_Block_Supports
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lende authored and ockham committed Oct 5, 2022
1 parent 8a2c3f3 commit f4f1bce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wp-includes/blocks/template-part.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,8 @@ function register_block_core_template_part() {
)
);
}
add_action( 'init', 'register_block_core_template_part', 22 );
/*
* This block relies on generated styles from previously registered blocks, so
* it should be registered last.
*/
add_action( 'init', 'register_block_core_template_part', 29 );

0 comments on commit f4f1bce

Please sign in to comment.