[wp-trac] [WordPress Trac] #11810: Some users able to comment on unpublished posts

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 7 17:20:27 UTC 2010


#11810: Some users able to comment on unpublished posts
--------------------------+-------------------------------------------------
 Reporter:  ericmann      |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  2.9.2
Component:  Comments      |     Version:  2.9.1
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Could you explain how to reproduce the error?

 The following lines seem to preclude posting on unpublished or closed
 posts:

 {{{
  27 } elseif ( !comments_open($comment_post_ID) ) {
  28         do_action('comment_closed', $comment_post_ID);
  29         wp_die( __('Sorry, comments are closed for this item.') );
  30 } elseif ( in_array($status->post_status, array('draft', 'pending') )
 ) {
  31         do_action('comment_on_draft', $comment_post_ID);
  32         exit;

 }}}

 I'm probably missing something obvious, but aren't private posts and
 password-protected posts the same?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11810#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list