Ticket #20236: 20236.1.diff
File 20236.1.diff, 544 bytes (added by , 13 years ago) |
---|
-
wp-includes/post.php
3124 3124 function get_all_page_ids() { 3125 3125 global $wpdb; 3126 3126 3127 if ( ! $page_ids = wp_cache_get('all_page_ids', 'posts') ) { 3127 $page_ids = wp_cache_get('all_page_ids', 'posts'); 3128 if ( ! is_array( $page_ids ) ) { 3128 3129 $page_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_type = 'page'"); 3129 3130 wp_cache_add('all_page_ids', $page_ids, 'posts'); 3130 3131 }