From d62e02245907dae1d2e1b70eecfcf7833358c00f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 3 Sep 2010 10:18:32 +0000 Subject: [PATCH] Add a note about REMOTE_ADDR behind proxies. git-svn-id: https://develop.svn.wordpress.org/trunk@15560 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index f7cedaa5d5..8cffff4955 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1245,6 +1245,10 @@ function wp_throttle_comment_flood($block, $time_lastcomment, $time_newcomment) * and whether comment is approved by WordPress. Also has 'preprocess_comment' * filter for processing the comment data before the function handles it. * + * We use REMOTE_ADDR here directly. If you are behind a proxy, you should ensure + * that it is properly set, such as in wp-config.php, for your environment. + * See {@link http://core.trac.wordpress.org/ticket/9235} + * * @since 1.5.0 * @uses apply_filters() Calls 'preprocess_comment' hook on $commentdata parameter array before processing * @uses do_action() Calls 'comment_post' hook on $comment_ID returned from adding the comment and if the comment was approved.