[wp-trac] [WordPress Trac] #10803: get_post_meta doesn't return an array when requested if nothing with that key exists.
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 28 08:35:23 UTC 2009
#10803: get_post_meta doesn't return an array when requested if nothing with that
key exists.
--------------------------+-------------------------------------------------
Reporter: westi | Owner: westi
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.9
Component: General | Version: 2.8.4
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):
* status: closed => reopened
* resolution: fixed =>
Comment:
Nonetheless, after a certain amount of time bugs tend to become features,
and this is a regression.
I don't mind the idea of breaking plugins, but if we do break things my
opinion is that we should fix things properly. By properly, I mean make
the meta functions return false, just like get_option() and
get_transient(), instead of a potentially valid value, when the meta is
not found.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10803#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list