[wp-trac] [WordPress Trac] #58889: Fix template parts mode check in site-editor.php

WordPress Trac noreply at wordpress.org
Mon Jul 24 14:18:19 UTC 2023


#58889: Fix template parts mode check in site-editor.php
--------------------------+------------------------------
 Reporter:  Mamaduka      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:
 Severity:  normal        |   Keywords:  has-testing-info
  Focuses:                |
--------------------------+------------------------------
 Recently Site Editor client-side routing started using only the `path`
 query argument for loading non-editor views.

 The router removes the `postType` query argument, which causes an error
 message to be displayed when you reload the template parts list page.

 1. Activate a theme that enables block-based template parts -
 https://github.com/Mamaduka/block-fragments or
 https://github.com/WordPress/gutenberg/tree/trunk/test/gutenberg-test-
 themes/emptyhybrid.
 2. Visit the new Appearance > Template Parts menu.
 3. Reload the page.
 4. Notice that "The theme you are currently using is not compatible with
 the Site Editor." message is displayed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58889>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list