[wp-trac] [WordPress Trac] #61884: Editor: Fix preloaded REST API paths

WordPress Trac noreply at wordpress.org
Wed Sep 4 04:15:31 UTC 2024


#61884: Editor: Fix preloaded REST API paths
--------------------------+-----------------------
 Reporter:  Mamaduka      |       Owner:  Mamaduka
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  6.7
Component:  Editor        |     Version:  6.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------

Comment (by Mamaduka):

 In [changeset:"58984" 58984]:
 {{{
 #!CommitTicketReference repository="" revision="58984"
 Editor: Update preloaded paths for the site editor

 Add the `OPTIONS /wp/v2/pages` route to the list. The request is made via
 the `useBlockEditorSettings` hook at the top of the editor React tree.
 Preloading should improve the editor's loading time.

 Avoid hardcoding paths for the 'attachment' post type; use the
 `rest_get_route_for_post_type_items` helper method instead.

 Props mamaduka, noisysocks.
 See #61884.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61884#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list