mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Send 403 instead of 500 for comment flood protection. Allow specifying response code for wp_die(). Props DD32. fixes #7246
git-svn-id: https://develop.svn.wordpress.org/trunk@9335 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -452,7 +452,7 @@ function check_comment_flood_db( $ip, $email, $date ) {
|
||||
if ( defined('DOING_AJAX') )
|
||||
die( __('You are posting comments too quickly. Slow down.') );
|
||||
|
||||
wp_die( __('You are posting comments too quickly. Slow down.') );
|
||||
wp_die( __('You are posting comments too quickly. Slow down.'), '', array('response' => 403) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user