[wp-trac] [WordPress Trac] #15058: Validate option and transient name lengths
WordPress Trac
noreply at wordpress.org
Tue Jan 5 22:29:14 UTC 2016
#15058: Validate option and transient name lengths
--------------------------------+-----------------------------
Reporter: chrisjean | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Options, Meta APIs | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------------+-----------------------------
Comment (by dustinbolton):
I also want to throw my hat in for getting this patched to throw the
warning. This issue has bitten myself and other plugins' code I've had to
troubleshoot. I bet the issue is more widespread than we know since it's
invisible. While increasing the max length may reduce its occurrence, it
is not a full solution.
Unexpected silent failures are very difficult to troubleshoot, and unless
someone knows the internals of how WordPress works, they may have a very
difficult time ever figuring out *why* this is breaking. In my opinion
this is an 'oddity' of WordPress due to its inner workings and deserves a
warning. It's certainly not intuitive that this would happen.
At best it will allow developers to discover the problem and head it off
before an end user ever encounters it. At worst the end user will see the
warning and contact the code author.
In my opinion a warning will result in better, more robust code in the
WordPress ecosystem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15058#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list