Make WordPress Core

Changeset 6872


Ignore:
Timestamp:
02/16/2008 04:24:52 PM (17 years ago)
Author:
westi
Message:

Make sure we can publish private posts. Fixes #5881, #4206.

File:
1 edited

Legend:

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

    r6796 r6872  
    5757    if ('' != $_POST['saveasprivate'] )
    5858        $_POST['post_status'] = 'private';
    59     if ('' != $_POST['publish'] )
     59    if ( ( '' != $_POST['publish'] ) && ( $_POST['post_status'] != 'private' ) )
    6060        $_POST['post_status'] = 'publish';
    6161    if ('' != $_POST['advanced'] )
     
    255255    if ('' != $_POST['saveasprivate'] )
    256256        $_POST['post_status'] = 'private';
    257     if ('' != $_POST['publish'] )
     257    if ( ( '' != $_POST['publish'] ) && ( $_POST['post_status'] != 'private' ) )
    258258        $_POST['post_status'] = 'publish';
    259259    if ('' != $_POST['advanced'] )
Note: See TracChangeset for help on using the changeset viewer.