[wp-trac] [WordPress Trac] #12867: "Preview Changes" does not work for custom content types

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 6 17:08:48 UTC 2010


#12867: "Preview Changes" does not work for custom content types
--------------------------+-------------------------------------------------
 Reporter:  markjaquith   |       Owner:                                    
     Type:  defect (bug)  |      Status:  new                               
 Priority:  high          |   Milestone:  3.0                               
Component:  Post Types    |     Version:  3.0                               
 Severity:  major         |    Keywords:  custom post types, preview changes
--------------------------+-------------------------------------------------

Comment(by duck_):

 {{{case 'preview'}}} in wp-admin/post.php checks for valid 'autosavenonce'
 (line 268). This is only present in the post editing page if the editor is
 present (edit-form-advanced.php line 244). This can be tested by adding
 {{{'editor'}}} to the supports array, you should find that you can now
 preview changes. Definitely needs a fix, also noticed this whilst looking
 into some other bugs
 (http://core.trac.wordpress.org/ticket/11082#comment:26)

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


More information about the wp-trac mailing list