Make WordPress Core

Opened 15 years ago

Last modified 15 years ago

#10803 closed defect (bug)

get_post_meta doesn't return an array when requested if nothing with that key exists. — at Initial Version

Reported by: westi's profile westi Owned by: westi's profile westi
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8.4
Component: General Keywords:
Focuses: Cc:

Description

e.g. get_post_meta($this->post_id, 'unique', false)

Where no metadata for key 'unique' exist on the post returns instead of array();

Change History (0)

Note: See TracTickets for help on using tickets.