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:
nacin 2010-12-14 11:25:11 +00:00
parent cd51624aba
commit 9845ee1fcd

View File

@ -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;
}