Remove cryptic bitwise check. Todo, CPT/supports checks. see #17005.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-03-31 06:33:20 +00:00
parent 7baf775b85
commit 51b3f2faf2
1 changed files with 1 additions and 4 deletions

View File

@ -51,10 +51,7 @@ add_contextual_help($current_screen,
$wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer)); $wp_http_referer = remove_query_arg(array('update', 'delete_count'), stripslashes($wp_http_referer));
$all_post_caps = array('posts', 'pages'); $user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' );
$user_can_edit = false;
foreach ( $all_post_caps as $post_cap )
$user_can_edit |= current_user_can("edit_$post_cap");
/** /**
* Optional SSL preference that can be turned on by hooking to the 'personal_options' action. * Optional SSL preference that can be turned on by hooking to the 'personal_options' action.