[wp-trac] [WordPress Trac] #15334: Unable to edit custom post types in 3.01 alpha

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 8 18:42:44 UTC 2010


#15334: Unable to edit custom post types in 3.01 alpha
--------------------------+-------------------------------------------------
 Reporter:  lsparks       |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Awaiting Review  
Component:  Post Types    |     Version:  3.0.1            
 Severity:  major         |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by lsparks):

 Here is my post-type definition. This code works fine on the stable
 release of 3.01, just not in alpha. The attachement shows a screen shot of
 the cursor hovering over the post title "test again". You can see there is
 no underline on the title as it is not linking to the edit page. There is
 also only "view" as an option which takes you to the post on the front
 end.

 {{{
 add_action( 'init', 'create_my_post_types' );

 function create_my_post_types() {

   register_post_type( 'casestudy',
                 array(
                         'labels' => array(
                                 'name' => __( 'Case Studies' ),
                                 'singular_name' => __( 'Case Study' ),
                                 'add_new' => __( 'Add New' ),
                                 'add_new_item' => __( 'Add New Case Study'
 ),
                                 'edit' => __( 'Edit' ),
                                 'edit_item' => __( 'Edit Case Study' ),
                                 'new_item' => __( 'New Case Study' ),
                                 'view' => __( 'View Case Study' ),
                                 'view_item' => __( 'View Case Study' ),
                                 'search_items' => __( 'Search Case
 Studies' ),
                                 'not_found' => __( 'No Case Studies found'
 ),
                                 'not_found_in_trash' => __( 'No Case
 Studies found in Trash' ),
                                 'parent' => __( 'Parent Case Study' ),
                         ),

                         'public' => true,
                         'can_export' => true,
                         'supports' => array(
 'title','thumbnail','comments'),
                         'rewrite' => array( 'slug' => 'casestudies'),
                         'menu_position' => 5,
                         'hierarchical' => false,
                         'show_in_nav_menus' => true,
                         'capability_type' => 'post',
                         'query_var' => "casestudy",
                         'menu_icon' =>
 get_template_directory_uri().'/images/summit.png',
                 )
         );

 }

 }}}

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


More information about the wp-trac mailing list