Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#36128 closed defect (bug) (wontfix)

get_post_meta() without key and single as true

Reported by: sebastianpisula's profile sebastian.pisula Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: close
Focuses: Cc:

Description

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
        )

)

Attachments (1)

35762.patch (602 bytes) - added by sebastian.pisula 10 years ago.

Download all attachments as: .zip

Change History (3)

#1 @chriscct7
10 years ago

  • Keywords close added

This has serious backwards compatibility issues

#2 @boonebgorges
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This has serious backwards compatibility issues

Agreed. Unfortunately, this is not something we can change.

Note: See TracTickets for help on using tickets.