Prepare properly. Props Vladimir Kolesnikov.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-11-30 20:04:11 +00:00
parent 54886235ab
commit e1bb824b25
1 changed files with 1 additions and 1 deletions

View File

@ -1723,7 +1723,7 @@ function do_trackbacks($post_id) {
trackback($tb_ping, $post_title, $excerpt, $post_id); trackback($tb_ping, $post_title, $excerpt, $post_id);
$pinged[] = $tb_ping; $pinged[] = $tb_ping;
} else { } else {
$wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, '$tb_ping', '')) WHERE ID = %d", $post_id) ); $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, %s, '')) WHERE ID = %d", $tb_ping, $post_id) );
} }
} }
} }