Ticket #7847: bookmark-name.diff
File bookmark-name.diff, 1.3 KB (added by , 17 years ago) |
---|
-
wp-includes/bookmark-template.php
26 26 * of the bookmark. 27 27 * 'show_images' - Default is 1 (integer). Whether to show link image if 28 28 * available. 29 * 'show_name' - Default is 1 (integer). Whether to show link name if 30 * available. 29 31 * 'before' - Default is '<li>' (string). The html or text to prepend to each 30 32 * bookmarks. 31 33 * 'after' - Default is '</li>' (string). The html or text to append to each … … 45 47 function _walk_bookmarks($bookmarks, $args = '' ) { 46 48 $defaults = array( 47 49 'show_updated' => 0, 'show_description' => 0, 48 'show_images' => 1, ' before' => '<li>',49 ' after' => '</li>', 'between' => "\n",50 'show_images' => 1, 'show_name' => 1, 51 'before' => '<li>', 'after' => '</li>', 'between' => "\n", 50 52 'show_rating' => 0 51 53 ); 52 54 … … 97 99 $output .= "<img src=\"$bookmark->link_image\" $alt $title />"; 98 100 else // If it's a relative path 99 101 $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />"; 100 } else {101 $output .= $name;102 102 } 103 104 if ($show_name) $output .= $name; 103 105 104 106 $output .= '</a>'; 105 107