Allow absolute image URIs in links.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1934965c55
commit
1498bf0bc2
|
@ -207,6 +207,9 @@ function get_links($category = -1, $before = '', $after = '<br />',
|
||||||
echo($rel . $title . $target);
|
echo($rel . $title . $target);
|
||||||
echo('>');
|
echo('>');
|
||||||
if (($row->link_image != null) && $show_images) {
|
if (($row->link_image != null) && $show_images) {
|
||||||
|
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 />";
|
echo "<img src='" . get_settings('siteurl') . "$row->link_image' $alt $title />";
|
||||||
} else {
|
} else {
|
||||||
echo($name);
|
echo($name);
|
||||||
|
|
Loading…
Reference in New Issue