Description
When using the Post Author block as an Editor, the getUsers() returns an empty list of authors and "0" is displayed in the inspector controls
My guess would be that Editor cannot change the author of the post (which makes sense) but "0" shouldn't be displayed. It should be enough to change the following line to actual boolean check
Step-by-step reproduction instructions
- Add a post as an admin
- Create a post or page
- Log in as another user with Editor role
- Add a Post Author block to the previously added page (or to a new one)
Screenshots, screen recording, code snippet
No response
Environment info
- Wordpress Version 6.3-alpha-55896 (started with
wp-env)
- Gutenberg current trunk 16.0.0-rc.1
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Description
When using the Post Author block as an Editor, the getUsers() returns an empty list of authors and "0" is displayed in the inspector controls
My guess would be that Editor cannot change the author of the post (which makes sense) but "0" shouldn't be displayed. It should be enough to change the following line to actual boolean check
gutenberg/packages/block-library/src/post-author/edit.js
Line 103 in f1d0bd5
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
wp-env)Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes