[wp-trac] [WordPress Trac] #23498: wp_list_authors ignores 'exclude_admin' arg when admin account has a display_name other then 'admin'
WordPress Trac
noreply at wordpress.org
Sat Mar 15 04:42:14 UTC 2014
#23498: wp_list_authors ignores 'exclude_admin' arg when admin account has a
display_name other then 'admin'
--------------------------+------------------------------
Reporter: raphaabreu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by nacin):
Unit test, from #26538 (also by MikeHansenMe):
{{{
/**
* @ticket 23498
*/
function test_wp_list_authors_number() {
$expected['number'] = '<li><a
href="http://example.org/?author=' . $this->users[1] . '" title="Posts by
bob">bob</a></li><li><a href="http://example.org/?author=' .
$this->users[2] . '" title="Posts by paul">paul</a></li>';
$this->AssertEquals( $expected['number'], wp_list_authors(
array( 'echo' => false, 'number' => 2 ) ) );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23498#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list