Make WordPress Core

Changeset 9139


Ignore:
Timestamp:
10/13/2008 10:43:05 PM (15 years ago)
Author:
ryan
Message:

Add show_name to wp_list_bookmarks(). Props Otto42. fixes #7847

File:
1 edited

Legend:

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

    r8742 r9139  
    2626 *      of the bookmark.
    2727 * 'show_images' - Default is 1 (integer). Whether to show link image if
     28 *      available.
     29 * 'show_name' - Default is 1 (integer). Whether to show link name if
    2830 *      available.
    2931 * 'before' - Default is '<li>' (string). The html or text to prepend to each
     
    4648    $defaults = array(
    4749        '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",
    5052        'show_rating' => 0
    5153    );
     
    98100            else // If it's a relative path
    99101                $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;
    103105
    104106        $output .= '</a>';
Note: See TracChangeset for help on using the changeset viewer.