#62193 closed defect (bug) (fixed)
Rename template registration API functions removing the wp_ prefix
| Reported by: | aljullu | Owned by: | peterwilsoncc |
|---|---|---|---|
| Priority: | high | Milestone: | 6.7 |
| Component: | Editor | Version: | 6.7 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: | template |
Description
As discussed in https://github.com/WordPress/gutenberg/pull/61577, we want to remove the wp_ prefix from wp_register_block_template() and wp_unregister_block_template() functions to keep them consistent with similar functions like register_block_type(), register_block_pattern() and register_block_style().
Change History (7)
This ticket was mentioned in PR #7543 on WordPress/wordpress-develop by @aljullu.
2 years ago
#1
- Keywords has-patch has-unit-tests added
@youknowriad commented on PR #7543:
2 years ago
#3
The Gutenberg PR is merged. Thanks for the follow-up here.
@peterwilsoncc commented on PR #7543:
2 years ago
#5
@get_dave commented on PR #7543:
2 years ago
#6
Thank you for the followup and for getting this committed everyone 👍
#7
in reply to: ↑ 4
@
12 months ago
Replying to peterwilsoncc:
In 59201:
wp_register_block_template()becomesregister_block_template().wp_unregister_block_template()becomesunregister_block_template().Props aljullu, aristath, youknowriad, swissspidy.
Fixes #62193.
}}}.
Great Thanks its working and fixed.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This PR includes the changes from https://github.com/WordPress/gutenberg/pull/65958 that need to be backported into WP core.
Trac ticket: https://core.trac.wordpress.org/ticket/62193