summaryrefslogtreecommitdiffstats
path: root/wp-includes/post.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-16 21:27:04 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-16 21:27:04 +0000
commit72e9496bfc2f7a962cf4f428ccab25c7a0175aaa (patch)
treeaf3e2ca7136c77140d9e9201e3f495a4b8e7a6da /wp-includes/post.php
parent04b67169db33e30f5ca63dbbafe551fdc6fb2164 (diff)
downloadwordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.tar.gz
wordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.tar.xz
wordpress-mu-72e9496bfc2f7a962cf4f428ccab25c7a0175aaa.zip
WP Merge to rev 4753
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@849 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/post.php')
-rw-r--r--wp-includes/post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/post.php b/wp-includes/post.php
index c3d3b6a..058db08 100644
--- a/wp-includes/post.php
+++ b/wp-includes/post.php
@@ -904,7 +904,7 @@ function get_all_page_ids() {
if ( ! $page_ids = wp_cache_get('all_page_ids', 'pages') ) {
$page_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE post_type = 'page'");
- wp_cache_add('all_page_ids', $page_ids, 'pages');
+ wp_cache_set('all_page_ids', $page_ids, 'pages');
}
return $page_ids;
@@ -946,7 +946,7 @@ function &get_page(&$page, $output = OBJECT) {
return get_post($_page, $output);
// Potential issue: we're not checking to see if the post_type = 'page'
// So all non-'post' posts will get cached as pages.
- wp_cache_add($_page->ID, $_page, 'pages');
+ wp_cache_set($_page->ID, $_page, 'pages');
}
}
}