Make WordPress Core

Changeset 1258


Ignore:
Timestamp:
05/10/2004 08:26:42 AM (21 years ago)
Author:
saxmatt
Message:

Allow absolute image URIs in links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/links.php

    r1235 r1258  
    208208        echo('>');
    209209        if (($row->link_image != null) && $show_images) {
    210             echo "<img src='" . get_settings('siteurl') . "$row->link_image' $alt $title />";
     210            if (strstr($row->link_image, 'http'))
     211                echo "<img src='$row->link_image' $alt $title />";
     212            else // If it's a relative path
     213                echo "<img src='" . get_settings('siteurl') . "$row->link_image' $alt $title />";
    211214        } else {
    212215            echo($name);
Note: See TracChangeset for help on using the changeset viewer.