From c057b7115b39b9fbe95919defede6458f860d47d Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 10 May 2004 08:26:42 +0000 Subject: [PATCH] Allow absolute image URIs in links. git-svn-id: https://develop.svn.wordpress.org/trunk@1258 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 9e86eb58af..bbe994b9a8 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); }