Make WordPress Core


Ignore:
Timestamp:
12/13/2005 12:54:52 AM (20 years ago)
Author:
ryan
Message:

Add read_post meta cap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r3293 r3297  
    644644                            $this->is_preview = true;
    645645                        }
    646                     } elseif ('private' == $status) {
    647                         if ($this->posts[0]->post_author != $user_ID)
     646                    } else {
     647                        if (! current_user_can('read_post', $this->posts[0]->ID))
    648648                            $this->posts = array();
    649649                    }
Note: See TracChangeset for help on using the changeset viewer.