[wp-trac] [WordPress Trac] #34865: Slug reset when updating post without slug field
WordPress Trac
noreply at wordpress.org
Sun Dec 6 21:58:02 UTC 2015
#34865: Slug reset when updating post without slug field
-------------------------------+------------------------------
Reporter: jason_the_adams | Owner: ericlewis
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses: administration
-------------------------------+------------------------------
Changes (by ericlewis):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"35800"]:
{{{
#!CommitTicketReference repository="" revision="35800"
Posts: Don't modify post_name if it wasn't supplied to `wp_insert_post()`.
Previously when updating a post using wp_insert_post(), post_name was
regenerated based on post_title every time if post_name was not passed in
explicitly. This irons out the expectation that properties not passed into
the
function should not be modified.
Props jason_the_adams.
Fixes #34865.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34865#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list