Make WordPress Core


Ignore:
Timestamp:
06/14/2007 04:24:28 PM (17 years ago)
Author:
markjaquith
Message:

Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r5566 r5707  
    6565    if ( 'page' == $_POST['post_type'] ) {
    6666        if ('publish' == $_POST['post_status'] && !current_user_can( 'edit_published_pages' ))
    67             $_POST['post_status'] = 'draft';
     67            $_POST['post_status'] = 'pending';
    6868    } else {
    6969        if ('publish' == $_POST['post_status'] && !current_user_can( 'edit_published_posts' ))
    70             $_POST['post_status'] = 'draft';
     70            $_POST['post_status'] = 'pending';
    7171    }
    7272
     
    269269    if ( 'page' == $_POST['post_type'] ) {
    270270        if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_pages' ) )
    271             $_POST['post_status'] = 'draft';
     271            $_POST['post_status'] = 'pending';
    272272    } else {
    273273        if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_posts' ) )
    274             $_POST['post_status'] = 'draft';
     274            $_POST['post_status'] = 'pending';
    275275    }
    276276
Note: See TracChangeset for help on using the changeset viewer.