[wp-trac] [WordPress Trac] #23925: get_post_meta does not check for revision
WordPress Trac
noreply at wordpress.org
Wed Aug 5 11:04:22 UTC 2015
#23925: get_post_meta does not check for revision
-------------------------------+------------------------------
Reporter: jfarthing84 | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 3.5.1
Severity: normal | Resolution:
Keywords: has-patch close | Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch => has-patch close
* component: General => Posts, Post Types
* milestone: => Awaiting Review
Comment:
Replying to [comment:5 katsar0v]:
> Any workaroung ? This seems to be a big bug, which is easy to solve, but
wordpress team is not responding...
There are backwards compatibility concerns, see the response in comment:4.
A workaround is just to check `wp_is_post_revision()` in your own code
before calling `get_post_meta()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23925#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list