[wp-trac] [WordPress Trac] #15058: Validate option and transient name lengths
WordPress Trac
noreply at wordpress.org
Wed Oct 29 05:43:04 UTC 2014
#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 MikeHansenMe):
Happy to write a few more unit tests. The current state is that it saves
the option/transient but truncates it if too long. Then when you go to
retrieve it it returns false because it(the long one) does not exist. The
previous patch would return false, not allowing it to work. I am ok with
that however wouldn't it be a better developer experience if it just
worked? The reason I added the md5 to the end of the prefixes is to
indicate that something else happened than the default. As for breaking it
out. I am ok with that however it is only a few lines of code and it is
not always the same number of characters.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15058#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list