Remove cryptic bitwise check. Todo, CPT/supports checks. see #17005.
git-svn-id: https://develop.svn.wordpress.org/trunk@17574 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
48a439ac5b
commit
f9eb15c0ce
@ -51,10 +51,7 @@ add_contextual_help($current_screen,
|
||||
|
||||
$wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer));
|
||||
|
||||
$all_post_caps = array('posts', 'pages');
|
||||
$user_can_edit = false;
|
||||
foreach ( $all_post_caps as $post_cap )
|
||||
$user_can_edit |= current_user_can("edit_$post_cap");
|
||||
$user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' );
|
||||
|
||||
/**
|
||||
* Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
|
||||
|
Loading…
Reference in New Issue
Block a user