Make WordPress Core


Ignore:
Timestamp:
10/24/2008 09:00:40 PM (15 years ago)
Author:
ryan
Message:

Send 403 instead of 500 for comment flood protection. Allow specifying response code for wp_die(). Props DD32. fixes #7246

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r9296 r9335  
    453453                die( __('You are posting comments too quickly.  Slow down.') );
    454454
    455             wp_die( __('You are posting comments too quickly.  Slow down.') );
     455            wp_die( __('You are posting comments too quickly.  Slow down.'), '', array('response' => 403) );
    456456        }
    457457    }
Note: See TracChangeset for help on using the changeset viewer.