[wp-trac] [WordPress Trac] #17087: get_post_meta returns empty array when requesting non-exsistent post meta
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 9 05:35:14 UTC 2011
#17087: get_post_meta returns empty array when requesting non-exsistent post meta
-------------------------------+------------------------------
Reporter: thomasvonhassel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: major | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by dd32):
and as i said before, an empty key will result in an array regardless
{{{
var_dump(
get_post_meta($id, '', true),
get_post_meta($id, '', false)
);
Output:
array
empty
array
empty
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17087#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list