-
Notifications
You must be signed in to change notification settings - Fork 219
Single Product Template - Compatibility Layer: don't skip block without name #9075
Single Product Template - Compatibility Layer: don't skip block without name #9075
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: 0 B Total Size: 1.11 MB ℹ️ View Unchanged
|
373f311
to
7f7ce16
Compare
7f7ce16
to
3c8745f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as expected. Code looks good as well.
Only comment: given that this is a bug that will be fixed, I think it might be worth adding it to the changelog. What do you think?
Good point! I added the changelog and removed the label |
* Single Product Template - Compatibility Layer: don't skip custom HTML (#9075) * Fix: tax_query should be calculated only if __woocommerceAttributes is valid (#9049) This commit refactors the update_rest_query method in the ProductQuery.php file to improve code readability. It simplifies conditional expressions by introducing variables for clarity, and uses ternary operators to streamline the logic. * Blockfied Single Product Template: Add support for template for specific product (#9069) * Product Price Block: remove ProductSelector (#8980) * Empty commit for release pull request * Make Woo_Directive_Store PHP 7.3 compatible (#9033) * update version * add changelog * add testing instructions * update zip link file testing * Update docs/internal-developers/testing/releases/1001.md Co-authored-by: Albert Juhé Lluveras <[email protected]> --------- Co-authored-by: Luigi Teschio <[email protected]> Co-authored-by: Manish Menaria <[email protected]> Co-authored-by: github-actions <[email protected]> Co-authored-by: Viktor Szépe <[email protected]> Co-authored-by: Albert Juhé Lluveras <[email protected]>
This PR fixes the Single Product Compatibility Layer, adding support for custom HTML Blocks. When the Custom HTML is parsed, the result is a block without the name but with the
innerHTML
content.Currently, there is a check that cleans the blocks without a name, but with this PR, I removed this check.
Fixes #9073
Testing
Automated Tests
User Facing Testing
<h2>HTML Block here</h2>
(or similar)WooCommerce Visibility
Changelog