wp_list_bookmarks should always show name if there is no image to show. Props mtdewvirus. fixes #7981
git-svn-id: https://develop.svn.wordpress.org/trunk@9366 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
425509448d
commit
fdcc463c3d
|
@ -51,7 +51,7 @@
|
|||
function _walk_bookmarks($bookmarks, $args = '' ) {
|
||||
$defaults = array(
|
||||
'show_updated' => 0, 'show_description' => 0,
|
||||
'show_images' => 1, 'show_name' => 1,
|
||||
'show_images' => 1, 'show_name' => 0,
|
||||
'before' => '<li>', 'after' => '</li>', 'between' => "\n",
|
||||
'show_rating' => 0, 'link_before' => '', 'link_after' => ''
|
||||
);
|
||||
|
@ -105,9 +105,11 @@ function _walk_bookmarks($bookmarks, $args = '' ) {
|
|||
$output .= "<img src=\"$bookmark->link_image\" $alt $title />";
|
||||
else // If it's a relative path
|
||||
$output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />";
|
||||
}
|
||||
|
||||
if ($show_name) $output .= $name;
|
||||
} else {
|
||||
$output .= $name;
|
||||
}
|
||||
|
||||
$output .= $link_after;
|
||||
|
||||
|
|
Loading…
Reference in New Issue