I have CDO. see #15779.
git-svn-id: https://develop.svn.wordpress.org/trunk@16910 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
12da6006e0
commit
3a3d660a6e
@ -829,7 +829,7 @@ function map_meta_cap( $cap, $user_id ) {
|
|||||||
if ( ! $post_type->map_meta_cap ) {
|
if ( ! $post_type->map_meta_cap ) {
|
||||||
$caps[] = $post_type->cap->$cap;
|
$caps[] = $post_type->cap->$cap;
|
||||||
// Prior to 3.1 we would re-call map_meta_cap here.
|
// Prior to 3.1 we would re-call map_meta_cap here.
|
||||||
if ( $cap == 'delete_post' )
|
if ( 'delete_post' == $cap )
|
||||||
$cap = $post_type->cap->$cap;
|
$cap = $post_type->cap->$cap;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -874,7 +874,7 @@ function map_meta_cap( $cap, $user_id ) {
|
|||||||
if ( ! $post_type->map_meta_cap ) {
|
if ( ! $post_type->map_meta_cap ) {
|
||||||
$caps[] = $post_type->cap->$cap;
|
$caps[] = $post_type->cap->$cap;
|
||||||
// Prior to 3.1 we would re-call map_meta_cap here.
|
// Prior to 3.1 we would re-call map_meta_cap here.
|
||||||
if ( $cap == 'edit_post' )
|
if ( 'edit_post' == $cap )
|
||||||
$cap = $post_type->cap->$cap;
|
$cap = $post_type->cap->$cap;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -918,7 +918,7 @@ function map_meta_cap( $cap, $user_id ) {
|
|||||||
if ( ! $post_type->map_meta_cap ) {
|
if ( ! $post_type->map_meta_cap ) {
|
||||||
$caps[] = $post_type->cap->$cap;
|
$caps[] = $post_type->cap->$cap;
|
||||||
// Prior to 3.1 we would re-call map_meta_cap here.
|
// Prior to 3.1 we would re-call map_meta_cap here.
|
||||||
if ( $cap == 'read_post' )
|
if ( 'read_post' == $cap )
|
||||||
$cap = $post_type->cap->$cap;
|
$cap = $post_type->cap->$cap;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user