diff --git a/wp-includes/bookmark-template.php b/wp-includes/bookmark-template.php index fa5a20c18..5262bd1df 100644 --- a/wp-includes/bookmark-template.php +++ b/wp-includes/bookmark-template.php @@ -26,6 +26,8 @@ * of the bookmark. * 'show_images' - Default is 1 (integer). Whether to show link image if * available. + * 'show_name' - Default is 1 (integer). Whether to show link name if + * available. * 'before' - Default is '
  • ' (string). The html or text to prepend to each * bookmarks. * 'after' - Default is '
  • ' (string). The html or text to append to each @@ -45,8 +47,8 @@ function _walk_bookmarks($bookmarks, $args = '' ) { $defaults = array( 'show_updated' => 0, 'show_description' => 0, - 'show_images' => 1, 'before' => '
  • ', - 'after' => '
  • ', 'between' => "\n", + 'show_images' => 1, 'show_name' => 1, + 'before' => '
  • ', 'after' => '
  • ', 'between' => "\n", 'show_rating' => 0 ); @@ -97,9 +99,9 @@ function _walk_bookmarks($bookmarks, $args = '' ) { $output .= "link_image\" $alt $title />"; else // If it's a relative path $output .= "link_image\" $alt $title />"; - } else { - $output .= $name; } + + if ($show_name) $output .= $name; $output .= '';