[wp-trac] [WordPress Trac] #46066: Only pause plugins/themes for persistent errors
WordPress Trac
noreply at wordpress.org
Tue Jan 22 16:30:56 UTC 2019
#46066: Only pause plugins/themes for persistent errors
----------------------------+---------------------
Reporter: schlessera | Owner: (none)
Type: enhancement | Status: new
Priority: high | Milestone: 5.1
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+---------------------
Comment (by schlessera):
This first patch changes the `'error'` array that we store into a
`'record'` array that contains both the `'error'` and a `'count'`.
There's a define `WP_FATAL_ERROR_PROTECTION_REDIRECT_THRESHOLD` that
defaults to 2.
A plugin/theme is only paused if the consecutive count of the same error
happening after redirects reaches said threshold.
To discuss:
- Do we need such a constant?
- Do we need to count the number of redirects and make sure we're not
doing an infinite loop?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46066#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list