[wp-trac] [WordPress Trac] #56429: Gutenberg author box missing

WordPress Trac noreply at wordpress.org
Mon Oct 31 16:21:30 UTC 2022


#56429: Gutenberg author box missing
-------------------------------------+-------------------------------------
 Reporter:  lgadzhev                 |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Editor                   |     Version:  6.0.1
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch needs-       |     Focuses:  javascript,
  testing-info                       |  administration, rest-api
-------------------------------------+-------------------------------------

Comment (by vabrashev):

 Will try to add the missing info:

 == Testing Instructions
 These steps define how to reproduce the issue, and indicate the expected
 behavior.

 === Steps to Reproduce
 1. Log in to your local WP installation and create 100 "dummy" users with
 role Editor. If you have wp CLI enabled you can use this command `for i in
 {1..100}; do wp user create editor${i} editor${i}@editor${i}.com
 --user_pass=editor${i} --role=editor; done`. This will create 100 users
 with equal combination of username and password like
 "usernameN"/"passwordN", e.g. editor1/editor1, editor2/editor2,
 editor3/editor3, etc.
 2. Log in with user "editor1", create a new "Test Post" and set the Author
 to "editor99" (by searching in the input field) -
 https://i.imgur.com/Lxw1ybe.png
 3. 🐞 Log in in incognito mode or with a different browser with user
 "editor2" and open the very same post. You will notice that the Author
 post is not visible and you cannot change the Author -
 https://i.imgur.com/vG9QrTf.png

 === Expected Results
 When testing a patch to validate it works as expected:
 - ✅ The Author box should always be visible whether it's in the first 50
 users in the dropdown ordered alphabetically or not. Every editor should
 have the ability to see who's the author of the post and have the ability
 to change it.

 When reproducing a bug:
 - ❌ The bug happens when inside a WP installation there are more than
 around 50 users. When a user enters the Block Editor, the author dropdown
 shows around 60 users max - https://nimb.ws/EtcaeH. You can freely use the
 dropdown search, even for editors but still, the initial load shows only
 around 50 users in the dropdown. Normally this is fetching the first users
 in alphabetical order. If the user is among the first 50 users, it's going
 to be shown as the author of the post and everything will be fine but if
 it's not, the Block Editor will make an additional call to fetch that
 specific user. Unlike the call that is used for the dropdown's search,
 this call returns more information about the user and requires some
 additional capabilities, which Editors as user role don't have and it's
 breaking the author box

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56429#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list