Changeset 6668
- Timestamp:
- 01/26/08 10:18:33 (9 months ago)
- Files:
-
- trunk/wp-includes/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/comment.php
r6658 r6668 553 553 554 554 if ( ! isset($comment_author_IP) ) 555 $comment_author_IP = preg_replace( '/[^0-9a-fA-F:., ]/', '',$_SERVER['REMOTE_ADDR'] );555 $comment_author_IP = ''; 556 556 if ( ! isset($comment_date) ) 557 557 $comment_date = current_time('mysql'); … … 651 651 $commentdata['user_ID'] = (int) $commentdata['user_ID']; 652 652 653 $commentdata['comment_author_IP'] = preg_replace( '/[^0-9 ., ]/', '',$_SERVER['REMOTE_ADDR'] );653 $commentdata['comment_author_IP'] = preg_replace( '/[^0-9a-fA-F:., ]/', '',$_SERVER['REMOTE_ADDR'] ); 654 654 $commentdata['comment_agent'] = $_SERVER['HTTP_USER_AGENT']; 655 655
