[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 11:35:42 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
--------------------------+-------------------------------------------------
If you click "Preview Changes" for a custom post type item, you receive
the message "Are you sure you want to do this?"
Likely a nonce mismatch issue. Here is the test code to add a custom post
type:
{{{
register_post_type(
'album', array(
'label' => __('Albums'),
'singular_label' => __('Album'),
'public' => true,
'show_ui' => true,
'_edit_link' => 'post.php?post=%d',
'capability_type' => 'page',
'hierarchical' => false,
'rewrite' => true,
'query_var' => 'album',
'supports' => array('title', 'thumbnail')
));
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12867>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list