From 6bd92fd3df8f36ff41fd266544cf70c85768c406 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 28 May 2009 20:35:09 +0000 Subject: [PATCH] Fix notice. Props wnorris. fixes #8433 git-svn-id: https://develop.svn.wordpress.org/trunk@11477 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/user-edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 565c0372f7..6426d0013d 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -39,10 +39,10 @@ if ( !$user_id ) { wp_die( __('Invalid user ID.') ); } -$all_post_types = apply_filters('all_post_types', array('post', 'page')); +$all_post_caps = array('posts', 'pages'); $user_can_edit = false; -foreach ( $all_post_types as $post_type ) - $user_can_edit |= current_user_can("edit_$post_type"); +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.