Changeset 53021
- Timestamp:
- 03/29/2022 04:22:29 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
-
branches/5.9/src/wp-includes/functions.php
r52629 r53021 5186 5186 * 5187 5187 * @since 2.2.0 5188 * @since 5.9.3 Don't specify menu order when the active theme is a block theme. 5188 5189 * 5189 5190 * @global array $submenu … … 5196 5197 } 5197 5198 5198 $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' ); 5199 $menu_name = __( 'Widgets' ); 5200 if ( wp_is_block_theme() ) { 5201 $submenu['themes.php'][] = array( $menu_name, 'edit_theme_options', 'widgets.php' ); 5202 } else { 5203 $submenu['themes.php'][7] = array( $menu_name, 'edit_theme_options', 'widgets.php' ); 5204 } 5205 5199 5206 ksort( $submenu['themes.php'], SORT_NUMERIC ); 5200 5207 }
Note: See TracChangeset
for help on using the changeset viewer.