[wp-trac] [WordPress Trac] #33958: All Options Filter

WordPress Trac noreply at wordpress.org
Thu Sep 28 00:22:50 UTC 2017


#33958: All Options Filter
--------------------------------------+--------------------------
 Reporter:  sebastian.pisula          |       Owner:  pento
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.9
Component:  Options, Meta APIs        |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41627"]:
 {{{
 #!CommitTicketReference repository="" revision="41627"
 Options: Add new `alloptions` and `pre_cache_alloptions` filters.

 `pre_cache_alloptions` is run before the alloptions array is inserted into
 the cache, and is valuable for sanity checking the options, particularly
 if your caching scheme has size limitations.

 `alloptions` is run before returning the alloptions array, and is useful
 for when you have extra information that alloptions should return.

 Props sebastian.pisula, keesiemeijer.
 Fixes #33958.
 }}}

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


More information about the wp-trac mailing list