[wp-trac] [WordPress Trac] #8052: Confusing behaviour of 'Preview' button on published posts

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 3 21:12:17 GMT 2008


#8052: Confusing behaviour of 'Preview' button on published posts
-------------------------+--------------------------------------------------
 Reporter:  johnconners  |       Owner:  anonymous
     Type:  defect       |      Status:  new      
 Priority:  normal       |   Milestone:  2.8      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 If I edit a published post I see that the publish module has the 'Preview'
 button visible in the secondary area. Clicking Preview opens a page that
 doesn't actually preview the post itself, but shows the post as though it
 were being seen from an archive page. An example URL is:

 http://localhost/wptrunk/?wp_preview=1258&preview_nonce=1234f7fbbb

 From this page clicking the link to view the post itself results in a 404
 while attempting to show this URL:

 http://localhost/wptrunk/archives/2008/11/1258-autosave/

 My permalink structure is: archives/%year%/%monthnum%/%postname%/ and the
 live URL is in fact:

 http://localhost/wptrunk/archives/2008/11/this-is-a-new-post/

 If I change the post status to 'Draft' and click 'Preview' then the
 preview of the post is correctly shown (just the same as in 2.6.x) at:

 http://localhost/wptrunk/?p=1258&preview=true

 I'd expect when the post is published that the 'Preview' button would be
 replaced with 'View Post' or something similar which would redirect to the
 live post URL.

 One other observation I've made is that as soon as I click 'Preview' an
 autosave is created in the database for that post if there isn't one
 already. Maybe irrelevant but thought it was worth a mention.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8052>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list