Ticket #21368: 21368.17.diff
File 21368.17.diff, 2.2 KB (added by , 8 years ago) |
---|
-
wp-admin/includes/dashboard.php
1242 1242 <p><?php _e( 'First, tweak the look of your site:' ); ?></p> 1243 1243 <a class="button-primary welcome-button" href="<?php echo add_query_arg( 'url', urlencode( admin_url( '/' ) ), wp_customize_url() ); ?>"><?php _e( 'Customize Your Site' ); ?></a> 1244 1244 <?php if ( current_user_can( 'install_themes' ) || ( current_user_can( 'switch_themes' ) && count( wp_get_themes( array( 'allowed' => true ) ) ) > 1 ) ) : ?> 1245 <p ><?php printf( __( 'or, <a href="%s">change your theme completely</a>' ), admin_url( 'themes.php' ) ); ?></p>1245 <p class="hide-if-no-customize"><?php printf( __( 'or, <a href="%s" class="change-theme">change your theme completely</a>' ), admin_url( 'themes.php' ) ); ?></p> 1246 1246 <?php endif; ?> 1247 1247 </div> 1248 1248 <div class="welcome-panel-column"> -
wp-admin/js/dashboard.js
26 26 welcomePanel.toggleClass('hidden', ! this.checked ); 27 27 updateWelcomePanel( this.checked ? 1 : 0 ); 28 28 }); 29 30 // Replaces customizer link with link to themes page if customizer is not available 31 if ( $('body').hasClass('no-customize-support') ) 32 $('.welcome-button').prop('href', $('.change-theme').attr('href')); 29 33 30 34 // These widgets are sometimes populated via ajax 31 35 ajaxWidgets = [ -
wp-admin/admin-header.php
105 105 <?php 106 106 // If the customize-loader script is enqueued, make sure the customize 107 107 // body classes are correct as early as possible. 108 if ( wp_script_is( 'customize-loader', 'queue' ) && current_user_can( 'edit_theme_options' ) ) 108 if ( ( wp_script_is( 'customize-loader', 'queue' ) || 'dashboard' == $current_screen->base ) 109 && current_user_can( 'edit_theme_options' ) ) 109 110 wp_customize_support_script(); 110 111 ?> 111 112