[wp-trac] [WordPress Trac] #34865: Slug reset when updating post without slug field
WordPress Trac
noreply at wordpress.org
Sun Dec 6 21:29:44 UTC 2015
#34865: Slug reset when updating post without slug field
-------------------------------+------------------------------
Reporter: jason_the_adams | Owner: ericlewis
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: administration
-------------------------------+------------------------------
Comment (by jason_the_adams):
I didn't want to overextend this. But I did notice as well that a similar
issue happens if the post_status is omitted. In fact, there's two points
in wp_insert_post that effectively forces 'draft' if the status is omitted
or empty. It really feels like update should accept partial data and
assume the existing data in that case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34865#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list