Skip to content

Commit

Permalink
Return result from register_block_template in wp_register_block_templ…
Browse files Browse the repository at this point in the history
…ate function (#66102)

Co-authored-by: AnmolVerma404 <anmolverma404@git.wordpress.org>
Co-authored-by: Aljullu <aljullu@git.wordpress.org>
Co-authored-by: kevin940726 <kevin940726@git.wordpress.org>
  • Loading branch information
4 people authored Oct 16, 2024
1 parent 6544c6f commit e015455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.7/block-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function unregister_block_template( $template_name ) {
*/
function wp_register_block_template( $template_name, $args = array() ) {
_deprecated_function( __FUNCTION__, 'Gutenberg 19.4.0', 'register_block_template' );
register_block_template( $template_name, $args );
return register_block_template( $template_name, $args );
}
}

Expand Down

1 comment on commit e015455

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in e015455.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11366372148
📝 Reported issues:

Please sign in to comment.