Make WordPress Core


Ignore:
Timestamp:
02/06/2024 07:40:21 PM (10 months ago)
Author:
youknowriad
Message:

Editor: Show the patterns page for classic themes.

Block themes and classic themes with template parts support
can already access the patterns list within the site editor.
This adds a "Patterns" menu item under Appearance for classic themes
without template parts support.

Props wildworks, kevin940726, aaronrobertshaw, fabiankaegy, swissspidy, get_dave, kebbet.
Fixes #58827.

File:
1 edited

Legend:

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

    r57532 r57543  
    53965396        $submenu['themes.php'][] = array( $menu_name, 'edit_theme_options', 'widgets.php' );
    53975397    } else {
    5398         $submenu['themes.php'][7] = array( $menu_name, 'edit_theme_options', 'widgets.php' );
     5398        $submenu['themes.php'][8] = array( $menu_name, 'edit_theme_options', 'widgets.php' );
    53995399    }
    54005400
Note: See TracChangeset for help on using the changeset viewer.