Allow absolute image URIs in links.
git-svn-id: https://develop.svn.wordpress.org/trunk@1258 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f00d006395
commit
c057b7115b
@ -207,7 +207,10 @@ function get_links($category = -1, $before = '', $after = '<br />',
|
||||
echo($rel . $title . $target);
|
||||
echo('>');
|
||||
if (($row->link_image != null) && $show_images) {
|
||||
echo "<img src='" . get_settings('siteurl') . "$row->link_image' $alt $title />";
|
||||
if (strstr($row->link_image, 'http'))
|
||||
echo "<img src='$row->link_image' $alt $title />";
|
||||
else // If it's a relative path
|
||||
echo "<img src='" . get_settings('siteurl') . "$row->link_image' $alt $title />";
|
||||
} else {
|
||||
echo($name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user