WordPress.org

Make WordPress Core

Changeset 4825


Ignore:
Timestamp:
01/28/2007 09:58:01 PM (11 years ago)
Author:
ryan
Message:

Fix typo in read_pages conditional. Props McShelby. fixes #3705

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/capabilities.php

    r4505 r4825  
    5656        unset($this->role_names[$role]);
    5757        unset($this->roles[$role]);
    58        
     58
    5959        if ( $this->use_db )
    6060            update_option($this->role_key, $this->roles);
     
    428428
    429429        $author_data = get_userdata($user_id);
    430         $page_author_data = get_userdata($post->post_author);
     430        $page_author_data = get_userdata($page->post_author);
    431431        if ($user_id == $page_author_data->ID)
    432432            $caps[] = 'read';
  • trunk/wp-includes/capabilities.php

    r4505 r4825  
    5656        unset($this->role_names[$role]);
    5757        unset($this->roles[$role]);
    58        
     58
    5959        if ( $this->use_db )
    6060            update_option($this->role_key, $this->roles);
     
    428428
    429429        $author_data = get_userdata($user_id);
    430         $page_author_data = get_userdata($post->post_author);
     430        $page_author_data = get_userdata($page->post_author);
    431431        if ($user_id == $page_author_data->ID)
    432432            $caps[] = 'read';
Note: See TracChangeset for help on using the changeset viewer.