Changeset 52330 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 12/07/2021 12:00:45 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r52279 r52330 705 705 $can_edit_theme_options = current_user_can( 'edit_theme_options' ); 706 706 $can_customize = current_user_can( 'customize' ); 707 $is_block_ based_theme = $theme->is_block_based();708 709 if ( $is_block_ based_theme && $can_edit_theme_options ) {707 $is_block_theme = $theme->is_block_theme(); 708 709 if ( $is_block_theme && $can_edit_theme_options ) { 710 710 $customize_action = esc_url( admin_url( 'site-editor.php' ) ); 711 } elseif ( ! $is_block_ based_theme && $can_customize && $can_edit_theme_options ) {711 } elseif ( ! $is_block_theme && $can_customize && $can_edit_theme_options ) { 712 712 $customize_action = esc_url( 713 713 add_query_arg(
Note: See TracChangeset
for help on using the changeset viewer.