[wp-trac] [WordPress Trac] #46257: Deleting a page can break the permalink of other pages if it had media uploaded to it

WordPress Trac noreply at wordpress.org
Thu Feb 14 16:36:50 UTC 2019


#46257: Deleting a page can break the permalink of other pages if it had media
uploaded to it
--------------------------+-----------------------------
 Reporter:  mallorydxw    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.0.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Trashing and deleting a page can cause the permalink of another page to
 break the next time that page is edited. It is not obvious to the user
 that this will happen. It is also not obvious how to fix this, because
 when an image is not "Uploaded To" a particular page, it is not possible
 to edit the permalink.

 1. Start with vanilla WP installation using twentynineteen and no plugins
 1. Add New Page > Title: "Cat"
 1. Add Block > Image > Upload > Pick the image > Open
 1. Publish... > Publish
 1. Media > Click on the image that was just uploaded, see that it says
 "Uploaded To Cat"
 1. Edit more details > Edit (permalink) > Set to "dog" > OK > Update
 1. The permalink should now be `http://localhost/cat/dog/`
 1. Add New Page > Title: "Dog" > Publish... > Publish
 1. See that "Page address" is `http://localhost/dog/`
 1. Visit `/dog/` to confirm the page is displayed
 1. Pages > Trash (Cat) > Trash (at the top of the page) > Empty Trash
 1. Pages > Dog > Make a change, such as adding text to the existing block
 > Update
 1. Document > Permalink > Notice that URL is now `dog-2`
 1. Visit `/dog/` to see that instead of the page, the image is instead
 displayed

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46257>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list