Changeset 53020
- Timestamp:
- 03/29/2022 03:57:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r53018 r53020 5227 5227 * 5228 5228 * @since 2.2.0 5229 * @since 5.9.3 Don't specify menu order when the active theme is a block theme. 5229 5230 * 5230 5231 * @global array $submenu … … 5237 5238 } 5238 5239 5239 $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_theme_options', 'widgets.php' ); 5240 $menu_name = __( 'Widgets' ); 5241 if ( wp_is_block_theme() ) { 5242 $submenu['themes.php'][] = array( $menu_name, 'edit_theme_options', 'widgets.php' ); 5243 } else { 5244 $submenu['themes.php'][7] = array( $menu_name, 'edit_theme_options', 'widgets.php' ); 5245 } 5246 5240 5247 ksort( $submenu['themes.php'], SORT_NUMERIC ); 5241 5248 }
Note: See TracChangeset
for help on using the changeset viewer.