Block Hooks: Fix a number of multi-line comment openers.
Add the missing second asterisk to a number of multi-line comment openers, and remove a superfluous second asterisk from two others. Follow-up to [58614]. Props mukesh27. See #60854. Built from https://develop.svn.wordpress.org/trunk@58615 git-svn-id: http://core.svn.wordpress.org/trunk@58048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
73b9a4956f
commit
31e6e2ce05
|
@ -617,7 +617,7 @@ function _build_block_template_result_from_file( $template_file, $template_type
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'wp_template_part' === $template->type && $has_hooked_blocks ) {
|
if ( 'wp_template_part' === $template->type && $has_hooked_blocks ) {
|
||||||
/**
|
/*
|
||||||
* In order for hooked blocks to be inserted at positions first_child and last_child in a template part,
|
* In order for hooked blocks to be inserted at positions first_child and last_child in a template part,
|
||||||
* we need to wrap its content a mock template part block and traverse it.
|
* we need to wrap its content a mock template part block and traverse it.
|
||||||
*/
|
*/
|
||||||
|
@ -1022,7 +1022,7 @@ function _build_block_template_result_from_post( $post ) {
|
||||||
$existing_ignored_hooked_blocks = get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true );
|
$existing_ignored_hooked_blocks = get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true );
|
||||||
$attributes = ! empty( $existing_ignored_hooked_blocks ) ? array( 'metadata' => array( 'ignoredHookedBlocks' => json_decode( $existing_ignored_hooked_blocks, true ) ) ) : array();
|
$attributes = ! empty( $existing_ignored_hooked_blocks ) ? array( 'metadata' => array( 'ignoredHookedBlocks' => json_decode( $existing_ignored_hooked_blocks, true ) ) ) : array();
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* In order for hooked blocks to be inserted at positions first_child and last_child in a template part,
|
* In order for hooked blocks to be inserted at positions first_child and last_child in a template part,
|
||||||
* we need to wrap its content a mock template part block and traverse it.
|
* we need to wrap its content a mock template part block and traverse it.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.7-alpha-58614';
|
$wp_version = '6.7-alpha-58615';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue