WordPress.org

Make WordPress Core

Changeset 41699


Ignore:
Timestamp:
10/03/2017 04:12:51 AM (2 years ago)
Author:
westonruter
Message:

Customize: Update dashboard welcome link to point to themes panel in the customizer instead of themes admin screen.

Props celloexpressions.
Fixes #42050.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r41641 r41699  
    15681568    <div class="welcome-panel-column-container">
    15691569    <div class="welcome-panel-column">
    1570         <?php if ( current_user_can( 'customize' ) ): ?>
     1570        <?php if ( current_user_can( 'customize' ) ):
     1571            $customize_themes_link = add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) ); ?>
    15711572            <h3><?php _e( 'Get Started' ); ?></h3>
    15721573            <a class="button button-primary button-hero load-customize hide-if-no-customize" href="<?php echo wp_customize_url(); ?>"><?php _e( 'Customize Your Site' ); ?></a>
     
    15741575        <a class="button button-primary button-hero hide-if-customize" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Customize Your Site' ); ?></a>
    15751576        <?php if ( current_user_can( 'install_themes' ) || ( current_user_can( 'switch_themes' ) && count( wp_get_themes( array( 'allowed' => true ) ) ) > 1 ) ) : ?>
    1576             <p class="hide-if-no-customize"><?php printf( __( 'or, <a href="%s">change your theme completely</a>' ), admin_url( 'themes.php' ) ); ?></p>
     1577            <p class="hide-if-no-customize"><?php printf( __( 'or, <a href="%s">change your theme completely</a>' ), $customize_themes_link ); ?></p>
    15771578        <?php endif; ?>
    15781579    </div>
Note: See TracChangeset for help on using the changeset viewer.