-
Notifications
You must be signed in to change notification settings - Fork 219
Mini Cart Contents: Fix missing custom background #5448
Conversation
Size Change: 0 B Total Size: 819 kB ℹ️ View Unchanged
|
…products-block into fix/5416-mini-cart-background-gutenberg
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.
src/Utils/BlockTemplateUtils.php
Outdated
* | ||
* @return WP_Block_Template|null Template. | ||
*/ | ||
public static function fse_get_block_template( $id, $template_type ) { |
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.
I'm not sure about the fse
prefix... 🤔 I would just call it get_block_template
like in WP core or wc_get_block_template
if we want to make it clear it's WC-specific.
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.
Yes, it makes sense!
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.
I would call it get_block_template
as well, we already have BlockTemplateUtils
as the prefix.
As we already discussed in our internal channel, maybe before adopting this utility globally it is better to investigate why there is this different behavior even if both functions should do the same thing. This can require a little bit of time :( |
Sounds good! Do you know if we have an issue for that? It would be good adding it to the Template Editing v2 epic so we don't forget. |
No, it was my intention to create it after checking with you. |
…products-block into fix/5416-mini-cart-background-gutenberg
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.
With this PR using WordPress 5.9 beta, with the Gutenberg disabled, is visible the custom background if it is set.
Fixes #5416
Testing
Manual Testing
Check out this branch