-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flood of console.info()
notices
#33148
Comments
I've opened a PR in core for updating the patterns: WordPress/wordpress-develop#1483 |
The console.info messages are also there as soon as you add a new page (without adding content or interacting). This is very confusing for users (that happen to have the developer console open). For developers it is also irritating, because they have to find their own console messages between all of the core info messages. |
They are parsed, although not for the inserter preview. See: #33153 (comment) |
Resharing my #33153 (comment) comment for visibility: Thinking a bit more about it, it’s inevitable that with block patterns we will see more and more of those logs. Maybe, we should be less concerned about successful migrations. I see a ton of What worries me here, that those logs come from |
There were some interesting issues surfaced in my attempt to update the patterns in core which are summarized here: WordPress/wordpress-develop#1483 (comment). In a few words we have As @ocean90 explained:
So in In Regarding the logs now, another option maybe would be to implement some kind of |
@mtias, since you proposed an RFC for the classification of block validation types (#21703), I would be curious to hear how it fits in the picture. We didn't have this issue before. I know that @youknowriad added some changes to the block parser that skips some logging when the validation issues are visible in the UI. |
Description
In WordPress 5.8-beta1 through RC1, the browser console is displaying many notices when editing a post. The errors are a variation of:
Is this an intentional decision to include these notices now? If so, could the notices be updated to be conscious of when
WP_DEBUG
and only output this information when set totrue
? I can open up a companion ticket on Trac if appropriate.This behavior did not occur in WordPress 5.7.2.
Originally reported in the Alpha/Beta/RC forums.
Step-by-step reproduction instructions
Expected behaviour
Minimal notices are displayed in the console.
Actual behaviour
A lot of notices are displayed in the console.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: