Make WordPress Core

Changeset 10684


Ignore:
Timestamp:
03/02/2009 10:42:22 PM (16 years ago)
Author:
ryan
Message:

Require user to be logged in to comment on private posts. Props tott. see #8997

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r9781 r10684  
    5353    }
    5454} else {
    55     if ( get_option('comment_registration') )
     55    if ( get_option('comment_registration') || 'private' == $status->post_status )
    5656        wp_die( __('Sorry, you must be logged in to post a comment.') );
    5757}
Note: See TracChangeset for help on using the changeset viewer.