[wp-trac] [WordPress Trac] #13028: Make sure a commenter doesn't receive a blank screen when comment is rejected

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 16 06:35:12 UTC 2010


#13028: Make sure a commenter doesn't receive a blank screen when comment is
rejected
--------------------------+-------------------------------------------------
 Reporter:  solarissmoke  |       Owner:                        
     Type:  defect (bug)  |      Status:  new                   
 Priority:  normal        |   Milestone:  3.0                   
Component:  Comments      |     Version:  3.0                   
 Severity:  normal        |    Keywords:  dev-feedback has-patch
--------------------------+-------------------------------------------------
 In the last few changes to wp-comments-post the following action hooks
 have been added ahead of the pre_comment_on_post action hook:

 - comment_on_trash

 - comment_on_draft

 - comment_on_password_protected

 However, none of these hooks have default actions associated with them,
 which means that on a default install, if someone manages to post a
 comment on a trashed/draft/protected post, they get a blank screen without
 any explanation of what went wrong.

 I think there should be some default actions here, or some default
 behaviour in between the action hook and the exit statements.

 Proposed patch to follow.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13028>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list