Ticket #22979: wp-includes.patch
File wp-includes.patch, 756 bytes (added by , 12 years ago) |
---|
-
comment.php
1388 1388 $commentdata['comment_parent'] = ( 'approved' == $parent_status || 'unapproved' == $parent_status ) ? $commentdata['comment_parent'] : 0; 1389 1389 1390 1390 $commentdata['comment_author_IP'] = preg_replace( '/[^0-9a-fA-F:., ]/', '',$_SERVER['REMOTE_ADDR'] ); 1391 $commentdata['comment_agent'] = substr($_SERVER['HTTP_USER_AGENT'], 0, 254);1391 $commentdata['comment_agent'] = ( isset($_SERVER['HTTP_USER_AGENT']) ? substr($_SERVER['HTTP_USER_AGENT'], 0, 254) : '' ); 1392 1392 1393 1393 $commentdata['comment_date'] = current_time('mysql'); 1394 1394 $commentdata['comment_date_gmt'] = current_time('mysql', 1);