Skip to content

Commit 590e162

Browse files
committed
Revert "Add temporary formatting and comments for readability and development"
This reverts commit 2c077ec.
1 parent 2c077ec commit 590e162

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

quick-weblog.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,7 @@ function quick_weblog_submit_form() {
156156
$block_name = 'core/paragraph';
157157
$innerHTML = 'Sample paragraph text.';
158158

159-
$converted_block = new WP_Block_Parser_Block(
160-
$block_name, // Name of block @example "core/paragraph"
161-
array(), // Optional set of attributes from block comment delimiters @example array( 'columns' => 3 )
162-
array(), // List of inner blocks (of this same class)
163-
$innerHTML, // Resultant HTML from inside block comment delimiters after removing inner blocks
164-
array( $innerHTML ) // List of string fragments and null markers where inner blocks were found
165-
);
159+
$converted_block = new WP_Block_Parser_Block( $block_name, array(), array(), $innerHTML, array( $innerHTML ) );
166160
// WP_CLI::log( print_r( $converted_block, true ) );
167161

168162
$serialized_block = serialize_block( (array) $converted_block );

0 commit comments

Comments
 (0)