Ticket #3705: capabilities.php.diff
File capabilities.php.diff, 669 bytes (added by , 14 years ago) |
---|
-
wp-includes/capabilities.php
55 55 unset($this->role_objects[$role]); 56 56 unset($this->role_names[$role]); 57 57 unset($this->roles[$role]); 58 58 59 59 if ( $this->use_db ) 60 60 update_option($this->role_key, $this->roles); 61 61 } … … 427 427 } 428 428 429 429 $author_data = get_userdata($user_id); 430 $page_author_data = get_userdata($p ost->post_author);430 $page_author_data = get_userdata($page->post_author); 431 431 if ($user_id == $page_author_data->ID) 432 432 $caps[] = 'read'; 433 433 else