[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves
WordPress Trac
noreply at wordpress.org
Tue Apr 24 12:35:48 UTC 2018
#43316: REST API: Support autosaves
-------------------------------------------------+-------------------------
Reporter: kraftbj | Owner: rmccue
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.0
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses: rest-api
tests |
-------------------------------------------------+-------------------------
Comment (by danielbachhuber):
Replying to [comment:83 azaozz]:
> Right. The problem here is that `(post_)parent` is a property of WP_Post
and the API shouldn't be overwriting it, especially for `pages`. Taht's a
UI setting for them. It seems this is another bug in the API. How would
that work when a draft page with a (real) post_parent is autosaved and the
actual page row is updated in the db? Would the page's parent be
overwritten?
Oh, I see what you've run into. In this particular case, we should be more
protective about the request data we're passing through. I'd consider what
you've described to be a bug.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43316#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list