Make WordPress Core

Opened 6 years ago

Last modified 2 months ago

#45505 new defect (bug)

get_post_custom() doesn't pull values

Reported by: dryane's profile dryane Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0
Component: Options, Meta APIs Keywords: has-patch needs-testing
Focuses: Cc:

Description

When you are on a post or page and change the content and reload, so that the autosave post pops up at the top, the get_post_custom() values in custom metaboxes aren't being pulled in.

get_post_meta() values however still works in that scenario.

Attachments (1)

45505.patch (5.9 KB) - added by vishalpadhariya 2 months ago.

Download all attachments as: .zip

Change History (3)

#1 @dryane
6 years ago

this of course is a big problem if you then save the post with empty values where filled values used to be

#2 @vishalpadhariya
2 months ago

  • Keywords has-patch needs-testing added; needs-patch removed

I've replaced the default get_post_custom() with get_post_meta() since get_post_custom() was not functioning as expected.

Note: See TracTickets for help on using tickets.