WordPress.org

Make WordPress Core

Ticket #5329: wpadmin-includes-post.diff

File wpadmin-includes-post.diff, 859 bytes (added by jeremyclarke, 12 years ago)

diff file for wp-admin/includes/post.php

  • wp-admin/includes/post.php

     
    6363               $_POST['post_status'] = 'draft';
    6464
    6565       if ( 'page' == $_POST['post_type'] ) {
    66                if ('publish' == $_POST['post_status'] && !current_user_can( 'edit_published_pages' ))
     66               if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_pages' ))
    6767                       $_POST['post_status'] = 'pending';
    6868       } else {
    69                if ('publish' == $_POST['post_status'] && !current_user_can( 'edit_published_posts' ))
     69               if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_posts' ))
    7070                       $_POST['post_status'] = 'pending';
    7171       }
    7272