[wp-trac] [WordPress Trac] #42687: get_post_meta() is returning arrays even when the $single value is true

WordPress Trac noreply at wordpress.org
Sun Nov 26 03:16:57 UTC 2017


#42687: get_post_meta() is returning arrays even when the $single value is true
-------------------------------------------------+---------------------
 Reporter:  titodevera                           |       Owner:  dd32
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.0
Component:  Posts, Post Types                    |     Version:  4.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  needs-docs good-first-bug has-patch  |     Focuses:  docs
-------------------------------------------------+---------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"42227"]:
 {{{
 #!CommitTicketReference repository="" revision="42227"
 Docs: Update the documentation for `get_post_meta()` to clarify that
 `$single` has no effect when the `$meta_key` is not provided.

 Props chetan200891, titodevera.
 Fixes #42687.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42687#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list