diff --git a/wp-includes/functions.php b/wp-includes/functions.php index f6d58f8f9..1d348571c 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -542,7 +542,7 @@ function update_post_caches(&$posts) { // Change from flat structure to hierarchical: $post_meta_cache = array(); foreach ($meta_list as $metarow) { - $mpid = $metarow['post_id']; + $mpid = (int) $metarow['post_id']; $mkey = $metarow['meta_key']; $mval = $metarow['meta_value']; diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 7f849167b..db804e1b5 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -211,7 +211,7 @@ function post_custom( $key = '' ) { // this will probably change at some point... function the_meta() { - global $id, $post_meta_cache; + global $id; if ( $keys = get_post_custom_keys() ) { echo "