WordPress.org

Make WordPress Core

Ticket #6943: post.diff

File post.diff, 551 bytes (added by imwebgefunden, 13 years ago)
  • post.php

    old new  
    6161                $_POST['post_status'] = 'draft';
    6262
    6363        if ( 'page' == $_POST['post_type'] ) {
    64                 if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_pages' ))
     64                if ('publish' == $_POST['post_status'] && ! (current_user_can( 'publish_pages' ) || current_user_can ( 'edit_published_pages' ) ) )
    6565                        $_POST['post_status'] = 'pending';
    6666        } else {
    6767                if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_posts' ))