Make WordPress Core

Changeset 55435


Ignore:
Timestamp:
02/28/2023 03:02:18 PM (13 months ago)
Author:
hellofromTonya
Message:

Site Editor: Add 'path' query arg to Appearance > Template Parts menu.

To display a list of block-based template parts for classic themes, this changeset adds a path query arg to the Appearance > Template Parts menu URL. This change is necessary due to recent changes to Site Editor's client-side routing.

Reference:

Follow-up to [55392], [54176].

Props mamaduka, audrasjb, fabiankaegy, hellofromTonya, kevin940726, mukesh27, youknowriad.
Fixes #57819.

File:
1 edited

Legend:

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

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