Make WordPress Core

Changeset 13989


Ignore:
Timestamp:
04/04/2010 07:41:07 AM (15 years ago)
Author:
nacin
Message:

Correct logic in wp_list_authors() for combinations of hide_empty and style args. fixes #10042

File:
1 edited

Legend:

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

    r13576 r13989  
    346346        }
    347347
    348         if ( !($posts == 0 && $hide_empty) && 'list' == $style )
    349             $return .= $link . '</li>';
    350         else if ( ! $hide_empty )
    351             $return .= $link . ', ';
     348        if ( $posts || ! $hide_empty )
     349            $return .= $link . ( ( 'list' == $style ) ? '</li>' : ', ' );
    352350    }
    353351
Note: See TracChangeset for help on using the changeset viewer.