Fix get_post_meta() array return. fixes #2183
git-svn-id: http://svn.automattic.com/wordpress/trunk@3410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cff4c42d36
commit
02089fb5f2
|
@ -472,7 +472,7 @@ function get_post_meta($post_id, $key, $single = false) {
|
||||||
if ( $single ) {
|
if ( $single ) {
|
||||||
return maybe_unserialize( $post_meta_cache[$post_id][$key][0] );
|
return maybe_unserialize( $post_meta_cache[$post_id][$key][0] );
|
||||||
} else {
|
} else {
|
||||||
return maybe_unserialize( $post_meta_cache[$post_id][$key][0] );
|
return maybe_unserialize( $post_meta_cache[$post_id][$key] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue