Opened 12 months ago
#56645 new defect (bug)
Multi-Site bug in PostAuthorComboBox for Super Admins not part of Site
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.0.2 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
If you have 50+ users on your site, the PostAuthorComboBox is used to display the "author" search/selector on the Post Edit screen.
For Super Admin's in Multi-Site setup, the author combo box does not display when editing a post if the admin is not part of the site.
The author lookup happens here: https://github.com/WordPress/WordPress/blob/a9c0050f9475857e80e813d8841052e0dde36efc/wp-includes/js/dist/editor.js#L6443-L6445
And if that fails, and the user is not part of the "authors" ( https://github.com/WordPress/WordPress/blob/a9c0050f9475857e80e813d8841052e0dde36efc/wp-includes/js/dist/editor.js#L6456 ), then the "postAuthor" remains undefined, and we get no combobox: https://github.com/WordPress/WordPress/blob/a9c0050f9475857e80e813d8841052e0dde36efc/wp-includes/js/dist/editor.js#L6513-L6515