Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #52422, comment 17


Ignore:
Timestamp:
05/03/2022 10:24:01 PM (3 years ago)
Author:
ironprogrammer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52422, comment 17

    initial v1  
    16161. Ensure permalink structure is set to "Post name" in ''Settings > Permalinks''.
    17171. Under ''Posts > Add New'' create a new post with the title "Test Post" and **Publish**.
    18 1. In another tab, verify that the post is published at `<your site url>/test-post/`. ✅
     181. In another tab, verify that the post is published at `<your site url>/test-post/`.
    19191. Navigate to ''Posts > Add New'' and create another new post with the title "Test Post 2", and click **Save draft** (DO NOT click **Publish**).
    20201. Find the "Permalink" metabox on the right-hand side of the post editor and update the "URL Slug" to `test-post` by removing the `-2` -- this will match the slug of the first new post. Click **Save draft** again (DO NOT click **Publish**).
    21211. In the second tab, refresh the page at `<your site url>/test-post/`.
    22 1. Observe that the post title displayed is now "Test Post 2", indicating that the draft post is overriding the original post's slug.
    23 1. Open the page in Private Browsing/Incognito mode and observe that a 404 error (not found) is returned, as the draft post is not published.
     221. Observe that the post title displayed is now "Test Post 2", indicating that the draft post is overriding the original post's slug. 🐞
     231. Open the page in Private Browsing/Incognito mode and observe that a 404 error (not found) is returned, as the draft post is not published. 🐞
    24241. Apply patch. 🛠
    25251. From the main Posts page, "Move to Trash" and "Delete Permanently" both "Test Post" and "Test Post 2".
     
    28281. In the second tab, refresh the page at `<your site url>/test-post/`.
    29291. Observe that the post title remains "Test Post", indicating the draft has not overridden the published post's slug. ✅
    30 1. In Private Browsing/Incognito, observe that the originally published post is displayed (404 error has been mitigated).
     301. In Private Browsing/Incognito, observe that the originally published post is displayed (404 error has been mitigated). ✅
    3131
    32 === Expected Results (✅)
    33 - The patch corrects the identified issue.
     32=== Expected Results
     33- I was able to reproduce the reported issue (see Steps 7-8). ✅
     34- The patch corrects the identified issue (see Steps 12-15). ✅
    3435
    3536=== Additional Notes