[wp-trac] [WordPress Trac] #56645: Multi-Site bug in PostAuthorComboBox for Super Admins not part of Site

WordPress Trac noreply at wordpress.org
Sat Sep 24 01:53:22 UTC 2022


#56645: Multi-Site bug in PostAuthorComboBox for Super Admins not part of Site
-------------------------------+-----------------------------
 Reporter:  haykuro            |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  6.0.2
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56645>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list