[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
Sun Sep 27 00:52:13 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:  major         |   Resolution:          
 Keywords:  2nd-opinion   |  
--------------------------+-------------------------------------------------

Comment(by azaozz):

 Yes, having a default return value that can be changed would make it more
 flexible like get_option(). Perhaps the same is needed for
 `get_usermeta()`.

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


More information about the wp-trac mailing list