[wp-trac] [WordPress Trac] #30577: Allow plugins to bypass wp_options when saving transients

WordPress Trac noreply at wordpress.org
Wed Dec 3 01:12:54 UTC 2014


#30577: Allow plugins to bypass wp_options when saving transients
------------------------------------+------------------------------
 Reporter:  mgibbs189               |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Options, Meta APIs      |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by rmccue):

 +1 on the concept, if only to match the `pre_update_option_{$option}` and
 `pre_update_option` filters. (Although I think the concept of moving
 transients to another table is flawed, there are probably other valid use
 cases regardless.)

 That said, the filter should definitely be called `pre_set_transient`.
 Also, the above patch is missing the close brace for the `if`, which is a
 syntax error.

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


More information about the wp-trac mailing list