-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
General InterfaceParts of the UI which don't fall neatly under other labels.Parts of the UI which don't fall neatly under other labels.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
Describe the bug
When loading the post editing screen, the <PostAuthor/>
component triggers a REST API request (via getAuthors()
) to fetch the authors to list to populate its filterable list. If the user isn't planning on changing the post author, this is an unnecessary REST API request and a waste of resources.
This request should be performed on-demand, for example when the field gains focus.
To reproduce
- Go to the post editing screen on a site with several users
- Observe that a request to
wp-json/wp/v2/users
is performed - Don't change the post author
- Wonder why that request was needed
Editor version (please complete the following information):
- WordPress version: 5.6 beta
skorasaurus
Metadata
Metadata
Assignees
Labels
General InterfaceParts of the UI which don't fall neatly under other labels.Parts of the UI which don't fall neatly under other labels.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.