Make WordPress Core


Ignore:
Timestamp:
11/16/2005 12:50:02 AM (21 years ago)
Author:
ryan
Message:

Update to use cap API.

File:
1 edited

Legend:

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

    r3092 r3095  
    620620                    if ('draft' == $status) {
    621621                        // User must have edit permissions on the draft to preview.
    622                         if (! user_can_edit_post($user_ID, $this->posts[0]->ID)) {
     622                        if (! current_user_can('edit_post', $this->posts[0]->ID)) {
    623623                            $this->posts = array();
    624624                        } else {
Note: See TracChangeset for help on using the changeset viewer.