From a74b414813fe733f25eb17da10b8fb7159570ace Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Wed, 9 Oct 2024 22:11:16 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@59201 git-svn-id: http://core.svn.wordpress.org/trunk@58596 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-template.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/block-template.php b/wp-includes/block-template.php index d42a74479c..2a75231ae4 100644 --- a/wp-includes/block-template.php +++ b/wp-includes/block-template.php @@ -377,7 +377,7 @@ function _resolve_template_for_new_post( $wp_query ) { * } * @return WP_Block_Template|WP_Error The registered template object on success, WP_Error object on failure. */ -function wp_register_block_template( $template_name, $args = array() ) { +function register_block_template( $template_name, $args = array() ) { return WP_Block_Templates_Registry::get_instance()->register( $template_name, $args ); } @@ -390,6 +390,6 @@ function wp_register_block_template( $template_name, $args = array() ) { * @return WP_Block_Template|WP_Error The unregistered template object on success, WP_Error object on failure or if the * template doesn't exist. */ -function wp_unregister_block_template( $template_name ) { +function unregister_block_template( $template_name ) { return WP_Block_Templates_Registry::get_instance()->unregister( $template_name ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 021065fcfc..28a65b5852 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-beta2-59200'; +$wp_version = '6.7-beta2-59201'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.