[wp-trac] [WordPress Trac] #52422: Create a draft with the same slug as an existing post, the existing post will be 404.
WordPress Trac
noreply at wordpress.org
Wed May 4 14:31:40 UTC 2022
#52422: Create a draft with the same slug as an existing post, the existing post
will be 404.
-------------------------------------------------+-------------------------
Reporter: Toro_Unit | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has- | Focuses:
testing-info early dev-feedback |
-------------------------------------------------+-------------------------
Changes (by costdev):
* keywords: has-patch has-unit-tests has-testing-info early => has-patch
has-unit-tests has-testing-info early dev-feedback
Comment:
I'm not sure why `$prepared_post->post_type = $this->post_type;` was
removed. There's no context in the original PR and
[https://core.trac.wordpress.org/attachment/ticket/52422/52422.refresh-of-
PR-1333.diff 52422.refresh-of-PR-1333.diff] is just a refresh with some
improvements, source formatting and explanations.
Whether or not this line is redundant, the change doesn't appear to belong
within this ticket's scope.
@Toro_Unit Can you provide any information about why this line was
removed?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52422#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list