Kill the serialization of $wp_filter in get_terms() — at Initial Version
|Reported by:||nacin||Owned by:|
|Component:||Cache API||Keywords:||has-patch 3.9-early|
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.