Ticket #21309: 21309.12.diff
File 21309.12.diff, 625 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
3494 3494 $cache = array(); 3495 3495 $key = md5( serialize( compact(array_keys($defaults)) ) ); 3496 3496 if ( $cache = wp_cache_get( 'get_pages', 'posts' ) ) { 3497 if ( is_array($cache) && isset( $cache[ $key ] ) ) {3497 if ( is_array($cache) && isset( $cache[ $key ] ) && is_array( $cache[ $key ] ) ) { 3498 3498 // Convert to WP_Post instances 3499 3499 $pages = array_map( 'get_post', $cache[ $key ] ); 3500 3500 $pages = apply_filters( 'get_pages', $pages, $r );