@@ -87,18 +87,18 @@ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
8787
8888 public function test_wp_list_authors_default () {
8989 $ expected ['default ' ] =
90- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a></li> ' .
91- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a></li> ' .
92- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a></li> ' ;
90+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a></li> ' .
91+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a></li> ' .
92+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a></li> ' ;
9393
9494 $ this ->assertSame ( $ expected ['default ' ], wp_list_authors ( array ( 'echo ' => false ) ) );
9595 }
9696
9797 public function test_wp_list_authors_orderby () {
9898 $ expected ['post_count ' ] =
99- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a></li> ' .
100- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a></li> ' .
101- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a></li> ' ;
99+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a></li> ' .
100+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a></li> ' .
101+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a></li> ' ;
102102
103103 $ this ->assertSame (
104104 $ expected ['post_count ' ],
@@ -113,9 +113,9 @@ public function test_wp_list_authors_orderby() {
113113
114114 public function test_wp_list_authors_order () {
115115 $ expected ['id ' ] =
116- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a></li> ' .
117- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a></li> ' .
118- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a></li> ' ;
116+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a></li> ' .
117+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a></li> ' .
118+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a></li> ' ;
119119
120120 $ this ->assertSame (
121121 $ expected ['id ' ],
@@ -131,9 +131,9 @@ public function test_wp_list_authors_order() {
131131
132132 public function test_wp_list_authors_optioncount () {
133133 $ expected ['optioncount ' ] =
134- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a> (2)</li> ' .
135- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a> (3)</li> ' .
136- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a> (1)</li> ' ;
134+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a> (2)</li> ' .
135+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a> (3)</li> ' .
136+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a> (1)</li> ' ;
137137
138138 $ this ->assertSame (
139139 $ expected ['optioncount ' ],
@@ -180,10 +180,10 @@ public function test_wp_list_authors_exclude_admin() {
180180 );
181181
182182 $ expected ['exclude_admin ' ] =
183- '<li><a href=" ' . get_author_posts_url ( 1 ) . '" title="Posts by admin" >admin</a></li> ' .
184- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a></li> ' .
185- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a></li> ' .
186- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a></li> ' ;
183+ '<li><a href=" ' . get_author_posts_url ( 1 ) . '">admin</a></li> ' .
184+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a></li> ' .
185+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a></li> ' .
186+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a></li> ' ;
187187
188188 $ this ->assertSame (
189189 $ expected ['exclude_admin ' ],
@@ -198,9 +198,9 @@ public function test_wp_list_authors_exclude_admin() {
198198
199199 public function test_wp_list_authors_show_fullname () {
200200 $ expected ['show_fullname ' ] =
201- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob reno</a></li> ' .
202- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul norris</a></li> ' .
203- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack moon</a></li> ' ;
201+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob reno</a></li> ' .
202+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul norris</a></li> ' .
203+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack moon</a></li> ' ;
204204
205205 $ this ->assertSame (
206206 $ expected ['show_fullname ' ],
@@ -217,10 +217,10 @@ public function test_wp_list_authors_hide_empty() {
217217 $ fred_id = self ::$ fred_id ;
218218
219219 $ expected ['hide_empty ' ] =
220- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a></li> ' .
221- '<li><a href=" ' . get_author_posts_url ( $ fred_id ) . '" title="Posts by fred" >fred</a></li> ' .
222- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a></li> ' .
223- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a></li> ' ;
220+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a></li> ' .
221+ '<li><a href=" ' . get_author_posts_url ( $ fred_id ) . '">fred</a></li> ' .
222+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a></li> ' .
223+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a></li> ' ;
224224
225225 $ this ->assertSame (
226226 $ expected ['hide_empty ' ],
@@ -235,9 +235,9 @@ public function test_wp_list_authors_hide_empty() {
235235
236236 public function test_wp_list_authors_echo () {
237237 $ expected ['echo ' ] =
238- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a></li> ' .
239- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a></li> ' .
240- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a></li> ' ;
238+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a></li> ' .
239+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a></li> ' .
240+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a></li> ' ;
241241
242242 $ this ->expectOutputString ( $ expected ['echo ' ] );
243243 wp_list_authors ( array ( 'echo ' => true ) );
@@ -249,9 +249,9 @@ public function test_wp_list_authors_feed() {
249249 $ url2 = get_author_feed_link ( self ::$ user_ids [2 ] );
250250
251251 $ expected ['feed ' ] =
252- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a> (<a href=" ' . $ url1 . '">link to feed</a>)</li> ' .
253- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a> (<a href=" ' . $ url2 . '">link to feed</a>)</li> ' .
254- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a> (<a href=" ' . $ url0 . '">link to feed</a>)</li> ' ;
252+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a> (<a href=" ' . $ url1 . '">link to feed</a>)</li> ' .
253+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a> (<a href=" ' . $ url2 . '">link to feed</a>)</li> ' .
254+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a> (<a href=" ' . $ url0 . '">link to feed</a>)</li> ' ;
255255
256256 $ this ->assertSame (
257257 $ expected ['feed ' ],
@@ -270,9 +270,9 @@ public function test_wp_list_authors_feed_image() {
270270 $ url2 = get_author_feed_link ( self ::$ user_ids [2 ] );
271271
272272 $ expected ['feed_image ' ] =
273- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a> <a href=" ' . $ url1 . '"><img src="http:// ' . WP_TESTS_DOMAIN . '/path/to/a/graphic.png" style="border: none;" /></a></li> ' .
274- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a> <a href=" ' . $ url2 . '"><img src="http:// ' . WP_TESTS_DOMAIN . '/path/to/a/graphic.png" style="border: none;" /></a></li> ' .
275- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a> <a href=" ' . $ url0 . '"><img src="http:// ' . WP_TESTS_DOMAIN . '/path/to/a/graphic.png" style="border: none;" /></a></li> ' ;
273+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a> <a href=" ' . $ url1 . '"><img src="http:// ' . WP_TESTS_DOMAIN . '/path/to/a/graphic.png" style="border: none;" /></a></li> ' .
274+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a> <a href=" ' . $ url2 . '"><img src="http:// ' . WP_TESTS_DOMAIN . '/path/to/a/graphic.png" style="border: none;" /></a></li> ' .
275+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a> <a href=" ' . $ url0 . '"><img src="http:// ' . WP_TESTS_DOMAIN . '/path/to/a/graphic.png" style="border: none;" /></a></li> ' ;
276276
277277 $ this ->assertSame (
278278 $ expected ['feed_image ' ],
@@ -294,9 +294,9 @@ public function test_wp_list_authors_feed_type() {
294294 $ url2 = get_author_feed_link ( self ::$ user_ids [2 ], 'atom ' );
295295
296296 $ expected ['feed_type ' ] =
297- '<li><a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a> (<a href=" ' . $ url1 . '">link to feed</a>)</li> ' .
298- '<li><a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a> (<a href=" ' . $ url2 . '">link to feed</a>)</li> ' .
299- '<li><a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a> (<a href=" ' . $ url0 . '">link to feed</a>)</li> ' ;
297+ '<li><a href=" ' . self ::$ user_urls [1 ] . '">bob</a> (<a href=" ' . $ url1 . '">link to feed</a>)</li> ' .
298+ '<li><a href=" ' . self ::$ user_urls [2 ] . '">paul</a> (<a href=" ' . $ url2 . '">link to feed</a>)</li> ' .
299+ '<li><a href=" ' . self ::$ user_urls [0 ] . '">zack</a> (<a href=" ' . $ url0 . '">link to feed</a>)</li> ' ;
300300
301301 $ this ->assertSame (
302302 $ expected ['feed_type ' ],
@@ -312,9 +312,9 @@ public function test_wp_list_authors_feed_type() {
312312
313313 public function test_wp_list_authors_style () {
314314 $ expected ['style ' ] =
315- '<a href=" ' . self ::$ user_urls [1 ] . '" title="Posts by bob" >bob</a>, ' .
316- '<a href=" ' . self ::$ user_urls [2 ] . '" title="Posts by paul" >paul</a>, ' .
317- '<a href=" ' . self ::$ user_urls [0 ] . '" title="Posts by zack" >zack</a> ' ;
315+ '<a href=" ' . self ::$ user_urls [1 ] . '">bob</a>, ' .
316+ '<a href=" ' . self ::$ user_urls [2 ] . '">paul</a>, ' .
317+ '<a href=" ' . self ::$ user_urls [0 ] . '">zack</a> ' ;
318318
319319 $ this ->assertSame (
320320 $ expected ['style ' ],
0 commit comments