Make WordPress Core


Ignore:
Timestamp:
07/25/2023 02:31:04 PM (17 months ago)
Author:
audrasjb
Message:

Editor: Fix conditionals in Template Editing Mode.

Previously, Site Editor client-side routing started using only the path query argument for loading non-editor views. The router removed the postType query
argument, which caused an error message to be displayed when the template parts list page was reloaded.

This changeset fixes the issue as it was affecting hybrid themes.

Props Mamaduka, isabel_brison, ramonopoly.
Fixes #58889.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r55881 r56302  
    211211        __( 'Template Parts' ),
    212212        'edit_theme_options',
    213         'site-editor.php?postType=wp_template_part&path=/wp_template_part/all',
     213        'site-editor.php?path=/wp_template_part/all',
    214214    );
    215215}
Note: See TracChangeset for help on using the changeset viewer.