WordPress.org

Make WordPress Core

Ticket #21368: 21368.16.2.no-customize.diff

File 21368.16.2.no-customize.diff, 1.8 KB (added by lessbloat, 19 months ago)
  • wp-admin/includes/dashboard.php

     
    12371237        <h3><?php _e( 'Welcome to WordPress!' ); ?></h3> 
    12381238        <p class="about-description"><?php _e( 'We&#8217;ve assembled some links to get you started:' ); ?></p> 
    12391239        <div class="welcome-panel-column-container"> 
    1240         <div class="welcome-panel-column"> 
     1240        <div class="welcome-panel-column hide-if-no-customize"> 
    12411241                <h4><?php _e( 'Get Started' ); ?></h4> 
    12421242                <p><?php _e( 'First, tweak the look of your site:' ); ?></p> 
    12431243                <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> 
  • wp-admin/admin-header.php

     
    105105<?php 
    106106// If the customize-loader script is enqueued, make sure the customize 
    107107// body classes are correct as early as possible. 
    108 if ( wp_script_is( 'customize-loader', 'queue' ) && current_user_can( 'edit_theme_options' ) ) 
     108if ( ( wp_script_is( 'customize-loader', 'queue' ) || 'dashboard' == $current_screen->base ) 
     109        && current_user_can( 'edit_theme_options' ) ) 
    109110        wp_customize_support_script(); 
    110111?> 
    111112 
  • wp-admin/css/wp-admin.css

     
    22852285                float: none; 
    22862286                width: 100%; 
    22872287        } 
     2288         
     2289        .no-customize-support .welcome-panel .hide-if-no-customize { 
     2290                display: none; 
     2291        } 
    22882292 
    22892293        .welcome-panel .welcome-panel-column li { 
    22902294                display: inline-block;