Make WordPress Core

Changeset 14473


Ignore:
Timestamp:
05/06/2010 03:38:40 PM (16 years ago)
Author:
nacin
Message:

Allow comments on private posts to proceed past the comment_on_draft action and exit branch. We handle whether the commenter has the appropriate caps further down. fixes #13276.

File:
1 edited

Legend:

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

    r14086 r14473  
    3838    do_action('comment_on_trash', $comment_post_ID);
    3939    exit;
    40 } elseif ( !$status_obj->public ) {
     40} elseif ( !$status_obj->public && !$status_obj->private ) {
    4141    do_action('comment_on_draft', $comment_post_ID);
    4242    exit;
Note: See TracChangeset for help on using the changeset viewer.