WordPress.org

Make WordPress Core

Ticket #10764: 10764.diff

File 10764.diff, 518 bytes (added by mdawaffe, 2 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    20112011 
    20122012                extract($actual_post, EXTR_SKIP); 
    20132013 
     2014                $post_status = $publish ? 'publish' : 'draft'; 
     2015 
    20142016                if ( ('publish' == $post_status) && !current_user_can('publish_posts') ) 
    20152017                        return new IXR_Error(401, __('Sorry, you do not have the right to publish this post.')); 
    20162018