Opened 8 years ago
Last modified 6 years ago
#37775 new defect (bug)
Capabilities inconsistence when registering CPT
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
When registering CPT I can define capabilities
, and some of them can be "turned off", so I can disable, for example, creating a new CPT object with 'create_posts' => false
.
But here is the interesting part:
'delete_post' => null, 'delete_posts' => false,
To prevent deletion, I need to specify exactly like above, otherwise I will get notices from WP.
In my opinion, we should have 1 approach, like false
Note: See
TracTickets for help on using
tickets.
Related: #30991