Make WordPress Core

Changeset 16802


Ignore:
Timestamp:
12/08/2010 05:07:55 PM (14 years ago)
Author:
westi
Message:

Correct the logic as there is no publish_post cap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r16801 r16802  
    32783278        do_action('xmlrpc_call', 'mt.publishPost');
    32793279
    3280         if ( !current_user_can('publish_post', $post_ID) )
     3280        if ( !current_user_can('publish_posts') || !current_user_can('edit_post', $post_ID) )
    32813281            return new IXR_Error(401, __('Sorry, you cannot publish this post.'));
    32823282
Note: See TracChangeset for help on using the changeset viewer.