[wp-trac] [WordPress Trac] #58903: set_transient() allows invalid transient name

WordPress Trac noreply at wordpress.org
Thu Dec 4 21:58:37 UTC 2025


#58903: set_transient() allows invalid transient name
-------------------------------------------------+-------------------------
 Reporter:  jeremyescott                         |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  7.0
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests changes-    |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------
Changes (by westonruter):

 * keywords:  has-patch has-unit-tests 2nd-opinion changes-requested => has-
     patch has-unit-tests changes-requested


Comment:

 As part of this, we need to also make sure whatever is done for
 `set_transient()` is also done for `set_site_transient()`. The transient
 name length is limited to 172 characters for non-site transients and for
 transients it is limited to 167 characters.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58903#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list