From effc23885385edb48390ff6235ecc1b20256ec1e Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 28 Jan 2007 21:58:01 +0000 Subject: [PATCH] Fix typo in read_pages conditional. Props McShelby. fixes #3705 git-svn-id: http://svn.automattic.com/wordpress/trunk@4825 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/capabilities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 273dccc4d..eccde9701 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -55,7 +55,7 @@ class WP_Roles { unset($this->role_objects[$role]); unset($this->role_names[$role]); unset($this->roles[$role]); - + if ( $this->use_db ) update_option($this->role_key, $this->roles); } @@ -427,7 +427,7 @@ function map_meta_cap($cap, $user_id) { } $author_data = get_userdata($user_id); - $page_author_data = get_userdata($post->post_author); + $page_author_data = get_userdata($page->post_author); if ($user_id == $page_author_data->ID) $caps[] = 'read'; else