[wp-trac] [WordPress Trac] #20496: Previews should redirect to the permalink if the post has been published

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 30 18:23:11 UTC 2012


#20496: Previews should redirect to the permalink if the post has been published
-------------------------+------------------------------
 Reporter:  evansolomon  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Canonical    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+------------------------------
Changes (by nacin):

 * keywords:  close => needs-patch


Comment:

 > No, you are not viewing a public post, you are previewing changes made
 since the post was published.

 Not quite — that's only if the link has a preview_id and preview_nonce.

 A draft post that is ?p=1234&preview=true does not trigger a preview once
 the post is published. It simply loads the post. The preview query
 variable is ignored. This ticket is about removing the preview query
 variable in this case and doing a canonical redirect to wherever ?p=1234
 should go.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20496#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list