[wp-trac] [WordPress Trac] #58813: Editing Slug to an Existing Slug causes wrong content to display

WordPress Trac noreply at wordpress.org
Fri Jul 14 22:01:07 UTC 2023


#58813: Editing Slug to an Existing Slug causes wrong content to display
--------------------------+------------------------------
 Reporter:  Ipstenu       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> **NOTE** This only works if you have the Classic Editor plugin active.
>
> I made a ticket there - https://github.com/WordPress/classic-
> editor/issues/201 - but they said it's a core bug.
>
> I am aware this is a weird one.
>
> The setup is as follows:
>
> 1. Make a clean website
> 2. Make a couple posts (content does not matter)
> 3. Install and Activate Classic Editor
> 4. Make a new post and save as draft
> 5. Copy the permalink from an existing post and paste it into the new
> post as the permalink, save as DRAFT (do not publish)
> 6. You will see the NEW post has a -2 added to the permalink (this is as
> expected)
> 7. Open the ORIGINAL existing post with the non -2
> 8. The post will display the content (title and all!) from the NEW post
> that is still in draft (this is NOT expected)
>
> This **does not** happen with the Block Editor, it can only be reproduced
> in Classic Editor, however the CE side feels this is a bug in core.
>
> I dug up that this is fixed in Gutenberg per
> https://core.trac.wordpress.org/ticket/52422 however it still exists in
> classic editor.
>
> I can confirm that this happens from WP 4.9.x through 6.0.x '''without'''
> Classic Editor.
>
> As of 6.1.3, this is fixed in Block Editor, and only appears if you have
> the Classic Editor active.

New description:

 **NOTE** This only works if you have the Classic Editor plugin active.

 I made a ticket there - https://github.com/WordPress/classic-
 editor/issues/201 - but they said it's a core bug.

 I am aware this is a weird one.

 The setup is as follows:

 1. Make a clean website
 2. Make a couple posts (content does not matter)
 3. Install and Activate Classic Editor
 4. Make a new post and save as draft
 5. Copy the permalink from an existing post and paste it into the new post
 as the permalink, save as DRAFT (do not publish)
 6. You will see the NEW post has a -2 added to the permalink (this is as
 expected)
 7. Open the ORIGINAL existing post with the non -2
 8. The post will display the content (title and all!) from the NEW post
 that is still in draft (this is NOT expected)

 This **does not** happen with the Block Editor, it can only be reproduced
 in Classic Editor, however the CE side feels this is a bug in core.

 I dug up that this is fixed in Gutenberg per #52422 however it still
 exists in classic editor.

 I can confirm that this happens from WP 4.9.x through 6.0.x '''without'''
 Classic Editor.

 As of 6.1.3, this is fixed in Block Editor, and only appears if you have
 the Classic Editor active.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58813#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list