Fix typo in read_pages conditional. Props McShelby. fixes #3705
git-svn-id: https://develop.svn.wordpress.org/trunk@4825 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
34a1911cce
commit
375aab4c00
|
@ -55,7 +55,7 @@ class WP_Roles {
|
||||||
unset($this->role_objects[$role]);
|
unset($this->role_objects[$role]);
|
||||||
unset($this->role_names[$role]);
|
unset($this->role_names[$role]);
|
||||||
unset($this->roles[$role]);
|
unset($this->roles[$role]);
|
||||||
|
|
||||||
if ( $this->use_db )
|
if ( $this->use_db )
|
||||||
update_option($this->role_key, $this->roles);
|
update_option($this->role_key, $this->roles);
|
||||||
}
|
}
|
||||||
|
@ -427,7 +427,7 @@ function map_meta_cap($cap, $user_id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$author_data = get_userdata($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)
|
if ($user_id == $page_author_data->ID)
|
||||||
$caps[] = 'read';
|
$caps[] = 'read';
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue