[wp-trac] [WordPress Trac] #31500: New post type undefined delete post value
WordPress Trac
noreply at wordpress.org
Mon Mar 16 13:04:12 UTC 2015
#31500: New post type undefined delete post value
-------------------------------------------+-------------------------------
Reporter: ozzWANTED | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.2
Component: Posts, Post Types | Version: 4.1
Severity: normal | Resolution:
Keywords: reporter-feedback needs-patch | Focuses: ui,
| administration
-------------------------------------------+-------------------------------
Changes (by ozzWANTED):
* status: closed => reopened
* resolution: worksforme =>
Comment:
Replying to [comment:8 valendesigns]:
> @ozzWANTED This is still working correctly in Core, what is not working
correctly is your combination of arguments. Unless you are planning on
creating your own custom meta capabilities setting `map_meta_cap` to
`false` is essentially removing all the `post` capabilities. Therefore,
you either need to set `map_meta_cap` to `true` or roll out your own
capabilities.
Well, it doesn't work even then. If I map these capiblities, still gives
me the same error.
This code gives an error:
{{{
'capability_type' => 'car',
'map_meta_cap' => false, // Set to false, if users
are not allowed to edit/delete existing posts
'capabilities' => array(
'read'
),
}}}
This code also gives an error:
{{{
'capability_type' => 'car',
'map_meta_cap' => false, // Set to false, if users
are not allowed to edit/delete existing posts
'capabilities' => array(
'read'
),
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31500#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list