[wp-trac] [WordPress Trac] #42296: REST API: logical error while checking for already deleted post
WordPress Trac
noreply at wordpress.org
Sun Dec 3 20:54:07 UTC 2017
#42296: REST API: logical error while checking for already deleted post
--------------------------+------------------------------
Reporter: schlessera | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7.2
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
--------------------------+------------------------------
Comment (by joehoyle):
@schlessera I might be missing something here, but the post_type doesn't
change when a post is trashed, so why would `this->get_post()` ever return
`rest_post_invalid_id`? It sounds as if you are getting post type and
status crossed over?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42296#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list