-
Notifications
You must be signed in to change notification settings - Fork 219
Update Mini-Cart block logic to use isSiteEditorPage util #9501
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: +131 B (0%) Total Size: 1.08 MB
ℹ️ View Unchanged
|
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 tested this and:
- ✅ There is no Mini-Cart in cart and checkout pages toggle in post/page editor
- ✅ There is Mini-Cart in cart and checkout pages toggle in site editor
- ❌ There is no Mini-Cart in cart and checkout pages toggle when added in Appearance -> Widget of classic theme
Let me know if I may be doing something wrong 🤔
Reading the code, the check works well. If you read it, the The testing instructions aren't correct, or it is necessary to add another check like "isWidgetArea". |
Ouch, I don't know what I did wrong when testing. 😅 Probably I didn't build properly. Sorry about the confusion. I updated the testing steps accordingly. While I think there is value in making that feature available in the Widgets screen, we haven't received any reports asking for it, and it's not sure if we are going to keep it in the future, so maybe better not to enable it in more places for now. Until #9442 that feature wasn't enabled in the Widgets screen either, so we would be keeping things as they were. @kmanijak I asked for a re-review, but I didn't do any code changes, I just updated the testing steps. |
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.
@kmanijak I asked for a re-review, but I didn't do any code changes, I just updated the testing steps.
✅ There is no Mini-Cart in cart and checkout pages toggle when added in Appearance -> Widget of classic theme
All's good then! Approving! 💪
In #9468, @gigitux introduced a
isSiteEditorPage()
util to detect when we are in the site editor.This PR reverts #9442 and updates the Mini-Cart block logic code to use that util, instead of its own solution.
Testing
User Facing Testing
WooCommerce Visibility