Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Single Product: Fix the Align setting #10977

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions src/BlockTypes/SingleProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,27 +64,6 @@ public function restore_global_post( $block_content, $parsed_block, $block_insta
return $block_content;
}


/**
* Render the Single Product block
*
* @param array $attributes Block attributes.
* @param string $content Block content.
* @param WP_Block $block Block instance.
*
* @return string Rendered block output.
*/
protected function render( $attributes, $content, $block ) {
$html = sprintf(
'<div class="woocommerce">
%1$s
</div>',
$content
);

return $html;
}

/**
* Update the context by injecting the correct post data
* for each one of the Single Product inner blocks.
Expand Down