mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Don't localize dates where not appropriate. Props Denis-de-Bernardy, hakre. fixes #9730
git-svn-id: https://develop.svn.wordpress.org/trunk@11323 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -464,8 +464,8 @@ function check_comment_flood_db( $ip, $email, $date ) {
|
||||
if ( current_user_can( 'manage_options' ) )
|
||||
return; // don't throttle admins
|
||||
if ( $lasttime = $wpdb->get_var( $wpdb->prepare("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_author_IP = %s OR comment_author_email = %s ORDER BY comment_date DESC LIMIT 1", $ip, $email) ) ) {
|
||||
$time_lastcomment = mysql2date('U', $lasttime);
|
||||
$time_newcomment = mysql2date('U', $date);
|
||||
$time_lastcomment = mysql2date('U', $lasttime, false);
|
||||
$time_newcomment = mysql2date('U', $date, false);
|
||||
$flood_die = apply_filters('comment_flood_filter', false, $time_lastcomment, $time_newcomment);
|
||||
if ( $flood_die ) {
|
||||
do_action('comment_flood_trigger', $time_lastcomment, $time_newcomment);
|
||||
|
||||
Reference in New Issue
Block a user