Changeset 10712 for trunk/wp-includes/bookmark-template.php
- Timestamp:
- 03/04/2009 11:49:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/bookmark-template.php
r10207 r10712 73 73 $the_link = clean_url($bookmark->link_url); 74 74 75 $rel = $bookmark->link_rel;76 if ( '' != $rel )77 $rel = ' rel="' . $rel . '"';78 79 75 $desc = attribute_escape(sanitize_bookmark_field('link_description', $bookmark->link_description, $bookmark->link_id, 'display')); 80 76 $name = attribute_escape(sanitize_bookmark_field('link_name', $bookmark->link_name, $bookmark->link_id, 'display')); … … 88 84 } 89 85 86 $alt = ' alt="' . $name . ( $show_description ? ' ' . $title : '' ) . '"'; 87 90 88 if ( '' != $title ) 91 89 $title = ' title="' . $title . '"'; 92 90 93 $alt = ' alt="' . $name . '"'; 91 $rel = $bookmark->link_rel; 92 if ( '' != $rel ) 93 $rel = ' rel="' . $rel . '"'; 94 94 95 95 $target = $bookmark->link_target; … … 97 97 $target = ' target="' . $target . '"'; 98 98 99 $output .= '<a href="' . $the_link . '"' . $rel . $title . $target . '>';99 $output .= '<a href="' . $the_link . '"' . $rel . $title . $target . '>'; 100 100 101 101 $output .= $link_before; 102 102 103 103 if ( $bookmark->link_image != null && $show_images ) { 104 if ( strpos($bookmark->link_image, 'http') !== false)104 if ( strpos($bookmark->link_image, 'http') === 0 ) 105 105 $output .= "<img src=\"$bookmark->link_image\" $alt $title />"; 106 106 else // If it's a relative path … … 122 122 $output .= $between . $desc; 123 123 124 if ( $show_rating) {124 if ( $show_rating ) 125 125 $output .= $between . sanitize_bookmark_field('link_rating', $bookmark->link_rating, $bookmark->link_id, 'display'); 126 }127 126 128 127 $output .= "$after\n";
Note: See TracChangeset
for help on using the changeset viewer.