#13904 closed defect (bug) (fixed)
wp_get_single_post and wp_update_post assume post properties
Reported by: | filosofo | Owned by: | filosofo |
---|---|---|---|
Milestone: | 3.0.1 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | Cc: |
Description
wp_update_post
and wp_get_single_post
assume both that the post object they try to retrieve exists and that it has certain properties.
Theses assumptions do not always hold true, as sometimes, for example one can pass arguments to wp_update_post
to create a new post object.
Patch does sanity checks for post object properties.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
(In [15405]) Sanity check properties in wp_get_single_post(). Props filosofo. fixes #13904 for 3.1