[wp-trac] [WordPress Trac] #15058: Validate option and transient name lengths

WordPress Trac noreply at wordpress.org
Fri Nov 22 22:00:31 UTC 2013


#15058: Validate option and transient name lengths
----------------------------------------+-----------------------------
 Reporter:  chrisbliss18                |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Validation                  |     Version:  3.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+-----------------------------

Comment (by khromov):

 I had an idea - why don't we add in filters in set/get/delete_option();
 that lets you change the option name just before it is inserted, retreived
 or deleted?

 Then it would be trivial to write a plugin that changes option names
 internally whichever way the user prefer. (For example using sc0ttkclarks
 solution).

 Such a change (adding a few filters) is unlikely to break any unit tests.

 Let me know what you think!

--
Ticket URL: <http://core.trac.wordpress.org/ticket/15058#comment:24>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list