[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
Fri Apr 8 13:33:58 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 | Keywords:
-----------------------------+-----------------------------
running this
{{{
$meta = get_post_meta($post->ID, 'metakey', true);
}}}
on a non existent metakey returns an empty array instead of an empty
string.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17087>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list