mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
I have CDO. see #15779.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd51624aba
commit
9845ee1fcd
@ -829,7 +829,7 @@ function map_meta_cap( $cap, $user_id ) {
|
||||
if ( ! $post_type->map_meta_cap ) {
|
||||
$caps[] = $post_type->cap->$cap;
|
||||
// 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;
|
||||
break;
|
||||
}
|
||||
@ -874,7 +874,7 @@ function map_meta_cap( $cap, $user_id ) {
|
||||
if ( ! $post_type->map_meta_cap ) {
|
||||
$caps[] = $post_type->cap->$cap;
|
||||
// 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;
|
||||
break;
|
||||
}
|
||||
@ -918,7 +918,7 @@ function map_meta_cap( $cap, $user_id ) {
|
||||
if ( ! $post_type->map_meta_cap ) {
|
||||
$caps[] = $post_type->cap->$cap;
|
||||
// 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;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user