get_post_meta fails to unserialize when $single=false
|Reported by:||andy||Owned by:||ryan|
When $single=false the return should be an array. maybe_unserialize is being applied to the array of rows so it doesn't do anything. It should be applied to each member of that array. Patch uses array_map and removes redundant logic.
If any plugin code is compensating by running maybe_unserialize on the array members, it will not be affected. If it uses unserialize, which is inadvisable anyway, it will break.