Add missing break. Props snakefoot. fixes #10692
git-svn-id: http://svn.automattic.com/wordpress/trunk@11912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1c161c23c2
commit
ba57ce7aba
|
@ -921,6 +921,7 @@ function map_meta_cap( $cap, $user_id ) {
|
|||
$caps[] = $cap;
|
||||
else
|
||||
$caps[] = 'do_not_allow';
|
||||
break;
|
||||
default:
|
||||
// If no meta caps match, return the original cap.
|
||||
$caps[] = $cap;
|
||||
|
|
Loading…
Reference in New Issue