Post meta caching fix by mdawaffe. fixes #3229

git-svn-id: https://develop.svn.wordpress.org/trunk@4372 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2006-10-11 09:18:54 +00:00
parent 29cbad678d
commit 836286e8ec
3 changed files with 30 additions and 28 deletions

View File

@@ -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'];