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

WordPress Trac noreply at wordpress.org
Fri Aug 16 06:22:01 UTC 2024


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

 * owner:  (none) => Mamaduka
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58904" 58904]:
 {{{
 #!CommitTicketReference repository="" revision="58904"
 Editor: Fix preloaded REST API paths

 When providing an incorrect path to preload, 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.

 Props kirasong, tyxla, mamaduka.
 Fixes #61884.
 }}}

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


More information about the wp-trac mailing list