WordPress.org

Make WordPress Core

Changeset 10644


Ignore:
Timestamp:
02/25/2009 01:13:32 AM (9 years ago)
Author:
ryan
Message:

wp_list_authors fixes. Props hailin. fixes #9229

File:
1 edited

Legend:

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

    r10570 r10644  
    489489
    490490    foreach ( (array) $authors as $author ) {
     491       
     492        $link = '';
     493       
    491494        $author = get_userdata( $author->ID );
    492495        $posts = (isset($author_count[$author->ID])) ? $author_count[$author->ID] : 0;
     
    548551        if ( !($posts == 0 && $hide_empty) && 'list' == $style )
    549552            $return .= $link . '</li>';
    550         else
     553        else if ( ! $hide_empty )
    551554            $return .= $link . ', ';
    552555    }
Note: See TracChangeset for help on using the changeset viewer.