[wp-trac] [WordPress Trac] #57011: wp_list_authors is broken in WordPress 6.1
WordPress Trac
noreply at wordpress.org
Wed Dec 21 15:04:17 UTC 2022
#57011: wp_list_authors is broken in WordPress 6.1
--------------------------+-----------------------------
Reporter: lifeboat | Owner: SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.1.2
Component: Users | Version: 6.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Comment (by Toru):
I just run into exactly same problem, for a site updated to 6.1.x.
`$args` for `wp_list_authors()` was this. and `optioncount` parameter was
causing `Fatal error: Uncaught Error: Object of class stdClass could not
be converted to string in ... author-template.php on line 568`
```
<?php $args = array(
'orderby' => 'post_count',
'order' => 'DESC',
'number' => null,
'optioncount' => true,
'exclude' => array( 1 ),
); ?>
```
Tried out the patch `57011.diff`, I can confirm that this fixed the issue.
Looking forward to be merged into 6.1.2.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57011#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list