[wp-cvs] wordpress xmlrpc.php,1.67,1.68
Matthew Mullenweg
saxmatt at users.sourceforge.net
Thu Jul 8 03:50:51 UTC 2004
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25205
Modified Files:
xmlrpc.php
Log Message:
Pingbacks shouldn't always be UTC.
Index: xmlrpc.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/xmlrpc.php,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** xmlrpc.php 10 Jun 2004 09:54:58 -0000 1.67
--- xmlrpc.php 8 Jul 2004 03:50:49 -0000 1.68
***************
*** 1687,1691 ****
$title = addslashes(strip_tags(trim($title)));
$user_ip = $_SERVER['REMOTE_ADDR'];
! $now = gmdate('Y-m-d H:i:s');
if(check_comment($title, '', $pagelinkedfrom, $context, $user_ip)) {
$approved = 1;
--- 1687,1692 ----
$title = addslashes(strip_tags(trim($title)));
$user_ip = $_SERVER['REMOTE_ADDR'];
! $now = current_time('mysql');
! $now_gmt = current_time('mysql', 1);
if(check_comment($title, '', $pagelinkedfrom, $context, $user_ip)) {
$approved = 1;
***************
*** 1694,1700 ****
}
$consulta = $wpdb->query("INSERT INTO $wpdb->comments
! (comment_post_ID, comment_author, comment_author_url, comment_author_IP, comment_date, comment_content, comment_approved)
VALUES
! ($post_ID, '$title', '$pagelinkedfrom', '$user_ip', '$now', '$context', '$approved')
");
--- 1695,1701 ----
}
$consulta = $wpdb->query("INSERT INTO $wpdb->comments
! (comment_post_ID, comment_author, comment_author_url, comment_author_IP, comment_date, comment_date_gmt, comment_content, comment_approved)
VALUES
! ($post_ID, '$title', '$pagelinkedfrom', '$user_ip', $now', '$now_gmt', '$context', '$approved')
");
More information about the cvs
mailing list