WordPress.org

Make WordPress Core

Ticket #4712: 4712.remove_cached_filter.2.diff

File 4712.remove_cached_filter.2.diff, 462 bytes (added by DD32, 12 years ago)

remove the get_pages filter on the cached result

  • wp-includes/post.php

     
    11131113        $key = md5( serialize( $r ) );
    11141114        if ( $cache = wp_cache_get( 'get_pages', 'page' ) )
    11151115                if ( isset( $cache[ $key ] ) )
    1116                         return apply_filters('get_pages', $cache[ $key ], $r );
     1116                        return $cache[ $key ];
    11171117
    11181118        $inclusions = '';
    11191119        if ( !empty($include) ) {