Opened 2 years ago
Closed 12 months ago
#56645 closed defect (bug) (fixed)
Multi-Site bug in PostAuthorComboBox for Super Admins not part of Site
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 6.5 | Priority: | normal |
Severity: | normal | Version: | 6.0.2 |
Component: | Editor | 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
Hi, @haykuro
The issue should be fixed now and part of the WP 6.5 release. See - https://github.com/WordPress/gutenberg/pull/58719.