[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
Sat Sep 26 09:15:22 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:  2nd-opinion   |  
--------------------------+-------------------------------------------------

Comment(by hakre):

 or the ability to inject the default value on function call? then the
 calling code can configure the functions output in this case as needed.
 should make things more easy in any case.

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


More information about the wp-trac mailing list