Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21267


Ignore:
Timestamp:
07/13/2012 11:46:28 PM (12 years ago)
Author:
scribu
Comment:

That looks incredibly hacky. Besides, closures are not serializable (you get a fatal error).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21267

    • Property Keywords needs-patch added
  • Ticket #21267 – Description

    initial v1  
    1 We use this as part of a persistent cache key: serialize($GLOBALS['wp_filter']['list_terms_exclusions']). See [8225].
     1We use this as part of a persistent cache key:
     2
     3{{{
     4serialize($GLOBALS['wp_filter']['list_terms_exclusions'])`
     5}}}
     6
     7See [8225].
    28
    39This is not good for two reasons. First, well, it's a not fun to reach into our internal API like that. But worse, it's broken whenever an object method is used, because spl_object_hash() will be unique to that object, thus rendering the cache invalidated on the next pageload.