Changeset 52279 for trunk/src/wp-admin/includes/theme.php
- Timestamp:
- 11/30/2021 02:25:34 PM (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
r52204 r52279 702 702 703 703 $customize_action = null; 704 if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { 704 705 $can_edit_theme_options = current_user_can( 'edit_theme_options' ); 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 ) { 710 $customize_action = esc_url( admin_url( 'site-editor.php' ) ); 711 } elseif ( ! $is_block_based_theme && $can_customize && $can_edit_theme_options ) { 705 712 $customize_action = esc_url( 706 713 add_query_arg(
Note: See TracChangeset
for help on using the changeset viewer.