Changeset 52330 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 12/07/2021 12:00:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r52279 r52330 1994 1994 $can_edit_theme_options = current_user_can( 'edit_theme_options' ); 1995 1995 $can_customize = current_user_can( 'customize' ); 1996 $is_block_ based_theme = wp_is_block_template_theme();1997 1998 if ( $is_block_ based_theme && $can_edit_theme_options ) {1996 $is_block_theme = wp_is_block_theme(); 1997 1998 if ( $is_block_theme && $can_edit_theme_options ) { 1999 1999 $customize_url = esc_url( admin_url( 'site-editor.php' ) ); 2000 } elseif ( ! $is_block_ based_theme && $can_customize ) {2000 } elseif ( ! $is_block_theme && $can_customize ) { 2001 2001 $customize_url = wp_customize_url(); 2002 2002 } … … 2013 2013 <a class="button button-primary button-hero hide-if-customize" href="<?php echo esc_url( admin_url( 'themes.php' ) ); ?>"><?php _e( 'Customize Your Site' ); ?></a> 2014 2014 <?php if ( current_user_can( 'install_themes' ) || ( current_user_can( 'switch_themes' ) && count( wp_get_themes( array( 'allowed' => true ) ) ) > 1 ) ) : ?> 2015 <?php $themes_link = $can_customize && ! $is_block_ based_theme ? add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) ) : admin_url( 'themes.php' ); ?>2015 <?php $themes_link = $can_customize && ! $is_block_theme ? add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) ) : admin_url( 'themes.php' ); ?> 2016 2016 <p class="hide-if-no-customize"> 2017 2017 <?php
Note: See TracChangeset
for help on using the changeset viewer.