From fdcc463c3d1f4f74b731f2fa3d4a769b18c8461c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 27 Oct 2008 16:23:07 +0000 Subject: [PATCH] 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 --- wp-includes/bookmark-template.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/bookmark-template.php b/wp-includes/bookmark-template.php index f4a186b64a..865ad68499 100644 --- a/wp-includes/bookmark-template.php +++ b/wp-includes/bookmark-template.php @@ -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' => '
  • ', 'after' => '
  • ', 'between' => "\n", 'show_rating' => 0, 'link_before' => '', 'link_after' => '' ); @@ -105,10 +105,12 @@ function _walk_bookmarks($bookmarks, $args = '' ) { $output .= "link_image\" $alt $title />"; else // If it's a relative path $output .= "link_image\" $alt $title />"; + + if ($show_name) $output .= $name; + } else { + $output .= $name; } - if ($show_name) $output .= $name; - $output .= $link_after; $output .= ''; @@ -249,4 +251,4 @@ function wp_list_bookmarks($args = '') { echo $output; } -?> \ No newline at end of file +?>