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
  • Loading branch information
AnmolVerma404 committed Oct 14, 2024
1 parent ca9857e commit 771a6c7
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

0 comments on commit 771a6c7

Please sign in to comment.