[wp-trac] [WordPress Trac] #36128: get_post_meta() without key and single as true

WordPress Trac noreply at wordpress.org
Sun Mar 6 20:38:29 UTC 2016


#36128: get_post_meta() without key and single as true
-------------------------------+-----------------------------
 Reporter:  sebastian.pisula   |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 I think that
 {{{
  get_post_meta(2379, '', true)
 }}}

 should return:


 {{{
 Array
 (
     [_edit_lock] => 1457296551:1
     [_edit_last] => 1
     [_thumbnail_id] => 2490
 )
 }}}

 not:


 {{{
 Array
 (
     [_edit_lock] => Array
         (
             [0] => 1457296568:1
         )

     [_edit_last] => Array
         (
             [0] => 1
         )

     [_thumbnail_id] => Array
         (
             [0] => 2490
         )

 )
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36128>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list