Ticket #21368: 21368.16.1.no-customize.diff
File 21368.16.1.no-customize.diff, 1.6 KB (added by , 8 years ago) |
---|
-
wp-admin/includes/dashboard.php
1240 1240 <div class="welcome-panel-column"> 1241 1241 <h4><?php _e( 'Get Started' ); ?></h4> 1242 1242 <p><?php _e( 'First, tweak the look of your site:' ); ?></p> 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>1243 <a class="button-primary welcome-button hide-if-no-customize" 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 1245 <p><?php printf( __( 'or, <a href="%s">change your theme completely</a>' ), admin_url( 'themes.php' ) ); ?></p> 1246 1246 <?php endif; ?> -
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