Make WordPress Core


Ignore:
Timestamp:
06/02/2024 08:15:59 AM (4 months ago)
Author:
audrasjb
Message:

Editor: Expose the Site Editor Patterns page for classic themes.

The Site Editor Patterns page was exposed internally for the Classic theme as of WP6.5. As we aim to officially expose the new Patterns page as of WP6.6, this changeset makes the following changes available when a classic themes is activated:

  • Link Appearance > Patterns submenu to the Site Editor Patterns page located at `wp-admin/site-editor.php?path=/patterns
  • Remove Template Parts submenu

Props wildworks, audrasjb, ironprogrammer, azaozz, youknowriad.
Fixes #61109.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r58200 r58278  
    54015401
    54025402    $menu_name = __( 'Widgets' );
    5403     if ( wp_is_block_theme() || current_theme_supports( 'block-template-parts' ) ) {
     5403    if ( wp_is_block_theme() ) {
    54045404        $submenu['themes.php'][] = array( $menu_name, 'edit_theme_options', 'widgets.php' );
    54055405    } else {
Note: See TracChangeset for help on using the changeset viewer.