Changeset 42170 for branches/4.9
- Timestamp:
- 11/13/2017 07:25:23 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/includes/dashboard.php
r41978 r42170 1568 1568 <div class="welcome-panel-column-container"> 1569 1569 <div class="welcome-panel-column"> 1570 <?php if ( current_user_can( 'customize' ) ): 1571 $customize_themes_link = add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) ); ?> 1570 <?php if ( current_user_can( 'customize' ) ) : ?> 1572 1571 <h3><?php _e( 'Get Started' ); ?></h3> 1573 1572 <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> … … 1575 1574 <a class="button button-primary button-hero hide-if-customize" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Customize Your Site' ); ?></a> 1576 1575 <?php if ( current_user_can( 'install_themes' ) || ( current_user_can( 'switch_themes' ) && count( wp_get_themes( array( 'allowed' => true ) ) ) > 1 ) ) : ?> 1577 <p class="hide-if-no-customize"><?php printf( __( 'or, <a href="%s">change your theme completely</a>' ), $customize_themes_link ); ?></p> 1576 <?php $themes_link = current_user_can( 'customize' ) ? add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) ) : admin_url( 'themes.php' ); ?> 1577 <p class="hide-if-no-customize"><?php printf( __( 'or, <a href="%s">change your theme completely</a>' ), $themes_link ); ?></p> 1578 1578 <?php endif; ?> 1579 1579 </div>
Note: See TracChangeset
for help on using the changeset viewer.