From c1095d12ddc80d71aebf0a669304286ec327c879 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 18 Nov 2005 02:15:08 +0000 Subject: [PATCH] Don't return undefined variable. git-svn-id: http://svn.automattic.com/wordpress/trunk@3142 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 725b9a1e48..c0a5b31a98 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -812,8 +812,7 @@ function trackback($trackback_url, $title, $excerpt, $ID) { $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; + return $wpdb->query("UPDATE $wpdb->posts SET to_ping = REPLACE(to_ping, '$tb_url', '') WHERE ID = '$ID'"); } function make_url_footnote($content) {