Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#37064 new defect (bug)

No checkbox in Posts list table for bulk action

Reported by: shamim51's profile shamim51 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

In posts list table it checks that user has edit_post capability or not and output checkbox depend on that. WP_Posts_List_Table also output table for any CPT. But user may not have edit_post capability but have delete_post capability or may be any other capability which need bulk select. In my case i created a CPT and which i restricted users from editing published post using 'edit_published_posts' but i did not restrict users from delete published post. But when i saw post table for that CPT i saw that no checkbox after post being published. But have Trash link individually when i mouse over that post.

Attachments (1)

class-wp-posts-list-table.php.patch (643 bytes) - added by shamim51 8 years ago.

Download all attachments as: .zip

Change History (1)

Note: See TracTickets for help on using tickets.