[wp-trac] [WordPress Trac] #45516: Auto Draft title issue for custom post types
WordPress Trac
noreply at wordpress.org
Fri Dec 7 08:52:15 UTC 2018
#45516: Auto Draft title issue for custom post types
--------------------------+-----------------------------
Reporter: rajanit2000 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.0
Severity: minor | Keywords: ui-feedback
Focuses: |
--------------------------+-----------------------------
I have register post type without title support
{{{
$labels = array(
'name' => _x( 'Social posts', 'post type general
name', 'text-domain' ),
'singular_name' => _x( 'Social post', 'post type singular
name', 'text-domain' ),
'menu_name' => _x( 'Social posts', 'admin menu', 'text-
domain' ),
'name_admin_bar' => _x( 'Social post', 'add new on admin bar',
'text-domain' ),
'add_new' => _x( 'Add New', 'social-post', 'text-
domain' ),
'add_new_item' => __( 'Add New Social post', 'text-domain'
),
'new_item' => __( 'New Social post', 'text-domain' ),
'edit_item' => __( 'Edit Social post', 'text-domain' ),
'view_item' => __( 'View Social post', 'text-domain' ),
'all_items' => __( 'All Social posts', 'text-domain' ),
'search_items' => __( 'Search Social posts', 'text-domain'
),
'parent_item_colon' => __( 'Parent Social posts:', 'text-domain'
),
'not_found' => __( 'No social-posts found.', 'text-
domain' ),
'not_found_in_trash' => __( 'No social-posts found in Trash.',
'text-domain' )
);
$args = array(
'labels' => $labels,
'description' => __( 'Description.', 'text-domain' ),
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'social-post' ),
'capability_type' => 'post',
'has_archive' => true,
'hierarchical' => false,
'menu_position' => 10,
'menu_icon' => 'dashicons-id',
'delete_with_user' => true,
'can_export' => true,
'show_in_rest' => true,
'supports' => array( 'editor' )
);
register_post_type( 'social-post', $args );
}}}
And if i add post the list post page shows title as "Auto Draft"
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45516>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list