[wp-trac] [WordPress Trac] #29847: get_default_post_to_edit() stomps on assigned post_name
WordPress Trac
noreply at wordpress.org
Fri Nov 7 15:05:24 UTC 2014
#29847: get_default_post_to_edit() stomps on assigned post_name
-------------------------------+------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.1
Component: Posts, Post Types | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
-------------------------------+------------------
Changes (by boonebgorges):
* keywords: has-patch => has-patch commit
Comment:
I've looked back over the logs and the related tickets and I can't see a
reason why a special exception was made for 'post_name'. Maybe the auto-
draft cleanup routine once had a '`WHERE post_name = ''`' clause? Or maybe
there are some other post-related queries that would get tripped up by a
non-empty 'post_name' on auto-drafts? If so, I'd call it a separate bug.
[attachment:29847.1.diff] seems fine to me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29847#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list