From 21cafc609cfbd1ffca5b1841d661173bbdf80a00 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 27 Sep 2005 03:34:37 +0000 Subject: [PATCH] For apos in links. git-svn-id: https://develop.svn.wordpress.org/trunk@2922 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 55ab90ccd1..a38c25311d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -786,6 +786,7 @@ function trackback($trackback_url, $title, $excerpt, $ID) { */ @fclose($fs); + $tb_url = addslashes( $tb_url ); $wpdb->query("UPDATE $wpdb->posts SET pinged = CONCAT(pinged, '\n', '$tb_url') WHERE ID = '$ID'"); $wpdb->query("UPDATE $wpdb->posts SET to_ping = REPLACE(to_ping, '$tb_url', '') WHERE ID = '$ID'"); return $result;