[wp-trac] [WordPress Trac] #56429: Gutenberg author box missing
WordPress Trac
noreply at wordpress.org
Tue Apr 22 12:04:42 UTC 2025
#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 has- | Focuses: javascript,
testing-info | administration, rest-api
-------------------------------------+-------------------------------------
Comment (by Mamaduka):
Reposting similar findings from the GitHub issue:
There's a logic difference between `get_item_permissions_check` and
`get_items_permissions_check`.
* `get_item_permissions_check` - allows `context=view` requests as long as
the user has one post published. https://github.com/WordPress/wordpress-
develop/blob/a1bce5f880b7c7b125f92fa468c2adedd354ece5/src/wp-includes
/rest-api/endpoints/class-wp-rest-users-controller.php#L488
* `get_items_permissions_check` - allows `context=view` query for authors
as long as the current user can edit posts. https://github.com/WordPress
/wordpress-develop/blob/9063e30f6f34d313ecdc3394f45ca63283732b24/src/wp-
includes/rest-api/endpoints/class-wp-rest-users-controller.php#L236-L245
I believe these inconsistencies need to be addressed in the REST API,
which enables the editor to access related data.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56429#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list