get_post_custom() doesn't always return an array
|Reported by:||donncha||Owned by:||anonymous|
I have noticed that get_post_custom() doesn't always return an array. wp-includes/feed.php uses this function in a foreach loop at line 164 in WP 2.5.1 resulting in an error message stating "Invalid argument supplied for foreach() in ...wp-includes/feed.php on line 164"
I think update_postmeta_cache() in wp-includes/post.php should cast it's return value as an array possibly.
Change History (6)
- Keywords 2nd-opinion added
- Milestone changed from 2.8 to Future Release
- Milestone changed from Future Release to 2.9
- Priority changed from normal to high