Skip to content
Closed
Prev Previous commit
Next Next commit
Rename function from _build_block_template_object_from_prepared_datab…
…ase_object to _build_block_template_object_from_database_object
  • Loading branch information
tjcafferkey committed May 15, 2024
commit b0c920f772e4f84cf7beca671cb1c9afe411d57c
2 changes: 1 addition & 1 deletion src/wp-includes/block-template-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ function _build_block_template_object_from_post_object( $post, $terms = array(),
* prepared for inserting or updating the database.
* @return WP_Block_Template|WP_Error Template or error object.
*/
function _build_block_template_object_from_prepared_database_object( $obj ) {
function _build_block_template_object_from_database_object( $obj ) {
$meta = isset( $obj->meta_input ) ? $obj->meta_input : array();
$terms = isset( $obj->tax_input ) ? $obj->tax_input : array();

Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ function inject_ignored_hooked_blocks_metadata_attributes( $changes, $deprecated
return $changes;

} else {
$template = _build_block_template_object_from_prepared_database_object( $changes );
$template = _build_block_template_object_from_database_object( $changes );

if ( is_wp_error( $template ) ) {
return $template;
Expand Down