Changeset 31615 for trunk/src/wp-includes/comment.php
- Timestamp:
- 03/05/2015 02:59:47 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r31553 r31615 2213 2213 $commentdata['comment_agent'] = isset( $_SERVER['HTTP_USER_AGENT'] ) ? substr( $_SERVER['HTTP_USER_AGENT'], 0, 254 ) : ''; 2214 2214 2215 $commentdata['comment_date'] = current_time('mysql'); 2216 $commentdata['comment_date_gmt'] = current_time('mysql', 1); 2215 if ( empty( $commentdata['comment_date'] ) ) { 2216 $commentdata['comment_date'] = current_time('mysql'); 2217 } 2218 2219 if ( empty( $commentdata['comment_date_gmt'] ) ) { 2220 $commentdata['comment_date_gmt'] = current_time( 'mysql', 1 ); 2221 } 2217 2222 2218 2223 $commentdata = wp_filter_comment($commentdata);
Note: See TracChangeset
for help on using the changeset viewer.