Make WordPress Core

Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#62193 closed defect (bug) (fixed)

Rename template registration API functions removing the wp_ prefix

Reported by: aljullu's profile aljullu Owned by: peterwilsoncc's profile peterwilsoncc
Milestone: 6.7 Priority: high
Severity: normal Version: 6.7
Component: Editor Keywords: has-patch has-unit-tests
Focuses: template Cc:

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 (6)

This ticket was mentioned in PR #7543 on WordPress/wordpress-develop by @aljullu.


4 months ago
#1

  • Keywords has-patch has-unit-tests added

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

#2 @swissspidy
4 months ago

  • Milestone changed from Awaiting Review to 6.7
  • Priority changed from normal to high

@youknowriad commented on PR #7543:


4 months ago
#3

The Gutenberg PR is merged. Thanks for the follow-up here.

#4 @peterwilsoncc
4 months ago

  • Owner set to peterwilsoncc
  • Resolution set to fixed
  • Status changed from new to closed

In 59201:

Editor: Remove prefix from wp_(un)register_block_template() functions.

Removes the wp_ prefix from block template registration functions for consistency with other block related registration functions.

  • wp_register_block_template() becomes register_block_template().
  • wp_unregister_block_template() becomes unregister_block_template().

Props aljullu, aristath, youknowriad, swissspidy.
Fixes #62193.

@get_dave commented on PR #7543:


4 months ago
#6

Thank you for the followup and for getting this committed everyone 👍

Note: See TracTickets for help on using tickets.