Make WordPress Core

Changeset 9366


Ignore:
Timestamp:
10/27/2008 04:23:07 PM (15 years ago)
Author:
ryan
Message:

wp_list_bookmarks should always show name if there is no image to show. Props mtdewvirus. fixes #7981

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/bookmark-template.php

    r9202 r9366  
    5252    $defaults = array(
    5353        'show_updated' => 0, 'show_description' => 0,
    54         'show_images' => 1, 'show_name' => 1,
     54        'show_images' => 1, 'show_name' => 0,
    5555        'before' => '<li>', 'after' => '</li>', 'between' => "\n",
    5656        'show_rating' => 0, 'link_before' => '', 'link_after' => ''
     
    106106            else // If it's a relative path
    107107                $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />";
     108
     109            if ($show_name) $output .= $name;
     110        } else {
     111            $output .= $name;
    108112        }
    109113       
    110         if ($show_name) $output .= $name;
    111 
    112114        $output .= $link_after;
    113115       
Note: See TracChangeset for help on using the changeset viewer.