WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#15334 closed defect (bug) (duplicate)

Unable to edit custom post types in 3.01 alpha

Reported by: lsparks Owned by:
Milestone: Priority: normal
Severity: major Version: 3.1
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

When viewing custom post types in the editor in 3.01 alpha the normal view/edit options are not available when hovering over the post title. The titles themselves are not links so there is no way to edit a post after it has been created. Hovering over the title only shows the "View" option rather than the full set of "Edit | Quick Edit | Trash | View".

I am downloading the 3.01 alpha nightlies and have had this issue for the past few weeks. Just wanted to make sure it was not overlooked for 3.1.

Attachments (1)

Screen-shot-2010-11-08-at-12.36.26-PM.png (48.3 KB) - added by lsparks 3 years ago.
Hover over post title

Download all attachments as: .zip

Change History (9)

comment:1 nacin3 years ago

  • Keywords reporter-feedback added; custom post types removed

I haven't seen this. How are you registering your post type?

lsparks3 years ago

Hover over post title

comment:2 lsparks3 years ago

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',
		)
	);

}

comment:3 lsparks3 years ago

  • Cc lsparks added

comment:4 follow-up: WraithKenny3 years ago

In the description of the ticket, you say "3.01 alpha"... Are you sure you don't mean "3.1 alpha" if so, this is known, and won't likely be overlooked. (Could be read "3.0.1" or "3.1" but they are very different.)

If "3.1" a Temp/Recommended work-around: add 'map_meta_cap' => true to your arguments. Hope that helps you.

comment:5 in reply to: ↑ 4 lsparks3 years ago

  • Version changed from 3.0.1 to 3.1

Replying to WraithKenny:

In the description of the ticket, you say "3.01 alpha"... Are you sure you don't mean "3.1 alpha" if so, this is known, and won't likely be overlooked. (Could be read "3.0.1" or "3.1" but they are very different.)

If "3.1" a Temp/Recommended work-around: add 'map_meta_cap' => true to your arguments. Hope that helps you.

Sorry, I did mean 3.1 alpha. Thanks

comment:6 WraithKenny3 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate #14122

comment:7 WraithKenny3 years ago

  • Keywords reporter-feedback removed

comment:8 scribu3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.