[wp-trac] [WordPress Trac] #32322: Custom permalink structure incorrect for Future posts
WordPress Trac
noreply at wordpress.org
Mon Aug 3 10:08:55 UTC 2015
#32322: Custom permalink structure incorrect for Future posts
-------------------------------------------------+-------------------------
Reporter: greencode | Owner: kdoole
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting
Component: Permalinks | Review
Severity: normal | Version: 4.2
Keywords: good-first-bug needs-unit-tests | Resolution:
has-patch | Focuses:
-------------------------------------------------+-------------------------
Comment (by johnbillion):
There's further inconsistency here. For a scheduled post, the permalink
used in various places is inconsistent.
* On the post listing screen, the 'View' link looks like
`example.com?p=123&preview=true`
* On the post editing screen, the 'View Post' link in the admin toolbar
looks like `example.com?p=123`
* On the post editing screen, the 'View Post' button next to the slug
editor is the pretty permalink
Whichever URL you view the post at, the `is_preview()` conditional is
true, so the non-pretty links should always be in the format
`example.com?p=123&preview=true`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32322#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list