[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:17:08 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 thomasvonhassel):

 Just did some more testing.

 If i query for a metakey that does not exist at all, for any post, it
 return an empty string. If i query for a key that exists in some posts,
 but not the current post, it returns an empty array.

 No filters or plugins activated that do anything with the metadata.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17087#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list