-
Notifications
You must be signed in to change notification settings - Fork 219
"Doing it wrong" error triggers after navigating to "Appearance > Widgets" page #10220
Comments
Pinging @nefeline because you'll be Porter this week and @gigitux because this bug was introduced in a PR you worked on. I've done some investigation and found out the source of this bug. In this PR #9386, we introduced the
Consequently, |
Hey, thanks for the ping! @nefeline, will you work on a fix? |
Hey @tarhi-saad ! Thank you so much for reporting this issue and your investigation 🙏 . I have a few questions: am I right in my assumption that this issue is not causing any regressions in functionality? Do you believe this is a high priority that must be tackled ASAP by the Porters or can we wait until the next Cooldown? |
Hello @nefeline! I haven't delved deeper to determine whether this error leads to regressions. I'm not fully aware of our stance on |
Thanks @tarhi-saad. Regarding:
The reason I asked you this is because there's another issue that is breaking the navigation block on WordPress 6.3 that was caused by #9468 , which is a PR that follows up the one you flagged over here as being the cause of this issue: #9386. I'm still working on a fix for that problem, #10283 , which may or may not have a positive impact on what is reported here, will keep you posted. cc: @gigitux in case you wanna share your thoughts on this since you worked on both PRs. |
Hey @tarhi-saad ! Heads up that this problem was solved on #10388 so I'm going ahead and closing this issue. Thanks again for the report and your prompt responses here! 🙌 |
Describe the bug
GlobalStep discovered this issue as part of critical flow testing.
A WordPress
Doing it wrong
message appears when the user clicksAppearance > Widgets
.This check was first introduced in this WordPress commit: WordPress/WordPress@846529d. It has the following description:
And here is the original WordPress ticket: https://core.trac.wordpress.org/ticket/53569
The generated Woo Blocks build files
build/cart.asset.php
andbuild/checkout.asset.php
does indeed includewp-editor
as a dependency. Maybe the solution would be to dequeue thewp-editor
script on the Widgets page.To reproduce
Steps to reproduce the behavior:
storefront
and theTwenty Twenty-one
themes)Appearance > Widgets
Doing it Wrong
tab from Query Monitor's overview panel, the error message:Function wp_enqueue_script() was called incorrectly. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). (This message was added in version 5.8.0.)
Expected behavior
The page should be displayed without any error after navigating to "Woocommerce > Widgets".
Screenshots
Environment
WordPress (please complete the following information):
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: