Skip to content

Deprecated function wp_register_block_template does not return the registered template object. #66091

@AnmolVerma404

Description

@AnmolVerma404

Description

While reviewing PR #65958 , I noticed that the deprecated function wp_register_block_template does not return a result. This seems to have been overlooked.

@Aljullu, does this sound correct, or did I miss anything?

Step-by-step reproduction instructions

  1. Go to lib/compat/wordpress-6.7/block-templates.php:66
  2. The deprecated function wp_register_block_template for legacy code does not return the result from the renamed function register_block_template.

Screenshots, screen recording, code snippet

No response

Environment info

  • Wordpress Version 6.7, Gutenberg version 19.4.0

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Metadata

Metadata

Labels

First-time ContributorPull request opened by a first-time contributor to Gutenberg repository[Feature] Templates APIRelated to API powering block template functionality in the Site Editor[Type] BugAn existing feature does not function as intended

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions