Skip to content

Update Latest-Post Block to fetch categories via the apiFecth API #2038

@chipsnyder

Description

@chipsnyder

Describe the bug

This shouldn't be used directly and instead, it should use the GB apiFecth interface. This will provide support for retries and cache of the data.

The only thing needed is to add the /wp/v2/categories to the white list here:

[ /wp\/v2\/media\/?\d*?.*/i ].some( ( pattern ) => pattern.test( path ) );

Reference

Expected behavior
Categories should still be fetched

Metadata

Metadata

Assignees

Labels

[Type] EnhancementImproves a current area of the editor

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions