[wp-trac] [WordPress Trac] #32322: Custom permalink structure incorrect for Future posts
WordPress Trac
noreply at wordpress.org
Mon Jun 23 11:12:40 UTC 2025
#32322: Custom permalink structure incorrect for Future posts
-------------------------------------------------+-------------------------
Reporter: greencode | Owner: kdoole
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future
| Release
Component: Permalinks | Version: 4.2
Severity: normal | Resolution:
Keywords: has-unit-tests needs-dev-note | Focuses:
needs-refresh good-first-bug needs-patch has- |
test-info |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-patch needs-testing has-unit-tests needs-dev-note =>
has-unit-tests needs-dev-note needs-refresh good-first-bug needs-patch
has-test-info
Comment:
== Reproduction Report
=== Description
✅ This report validates that the issue can be reproduced.
=== Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty 2.9
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
=== Reproduction Instructions
1. Got to Settings > Permalinks
2. Set it to Post Name
3. Create a new post, Schedule it to some day in the future
4. Check the URL for the scheduled post under Slug
[https://i.imgur.com/YzctzYu.png in the right bar]
5. Click on the permalink
6. 🐞 Permalink redirects to the non-permalink version of the URL
=== Actual Results
1. ✅ Error condition occurs (reproduced).
=== Additional Notes
- Although going directly to the permalink, in this case `/future-post`,
works well without redirection
- [https://core.trac.wordpress.org/attachment/ticket/32322/32322-2.diff
Current patch] is not applying any more. `$draft_or_pending` was removed
in [50132]. New logic should be reviewed in order to re-apply this patch.
Given that the last patch was delivered 6-years ago, it could be taken as
a reference, but to promo this report back, I will add back the `needs-
patch`.cc @andraganescu
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32322#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list