[wp-trac] [WordPress Trac] #61884: Editor: Fix preloaded REST API paths
WordPress Trac
noreply at wordpress.org
Fri Aug 16 03:42:09 UTC 2024
#61884: Editor: Fix preloaded REST API paths
--------------------------+------------------------------
Reporter: Mamaduka | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by Mamaduka):
When providing an incorrect path to preload containing a typo or an
invalid REST parameter, the `rest_preload_api_request` will silently fail,
and nothing will be preloaded.
* Fix typo for `wp_template_part` post type preload path for the Site
Editor.
* Do not preload the `wp_block` post type for post editors. The endpoint
doesn't support unbound queries, and the data is no longer needed during
editor initialization.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61884#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list