From 1498bf0bc241c7e6712075567bab7a55d0f1b3b5 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 10 May 2004 08:26:42 +0000 Subject: [PATCH] Allow absolute image URIs in links. git-svn-id: http://svn.automattic.com/wordpress/trunk@1258 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/links.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/links.php b/wp-includes/links.php index 9e86eb58a..bbe994b9a 100644 --- a/wp-includes/links.php +++ b/wp-includes/links.php @@ -207,7 +207,10 @@ function get_links($category = -1, $before = '', $after = '
', echo($rel . $title . $target); echo('>'); if (($row->link_image != null) && $show_images) { - echo "link_image' $alt $title />"; + if (strstr($row->link_image, 'http')) + echo ""; + else // If it's a relative path + echo "link_image' $alt $title />"; } else { echo($name); }