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 (WordPress#66102)

Co-authored-by: AnmolVerma404 <[email protected]>
Co-authored-by: Aljullu <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
  • Loading branch information
4 people authored and karthick-murugan committed Nov 13, 2024
1 parent b69bd6f commit 93c3600
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 93c3600

Please sign in to comment.