Kill the serialization of $wp_filter in get_terms()
|Reported by:||nacin||Owned by:||boonebgorges|
Description (last modified by scribu)
We use this as part of a persistent cache key:
This 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.
As an aside, we should probably have _wp_filter_build_unique_id() create a delimiter when dealing with a static class method — $function.$function can conflict with a legitimate function name.
I'm not sure how this should be fixed.
Change History (22)
4 years ago
- Keywords has-patch added; needs-patch removed
- Keywords needs-unit-tests needs-testing added
- Milestone changed from Future Release to 3.7
- Keywords needs-unit-tests needs-testing removed
- Milestone changed from 3.7 to 3.8
- Keywords 3.9-early added
- Milestone changed from 3.8 to Future Release
7 months ago
- Keywords 3.9-early removed
- Milestone changed from Future Release to 4.4