Make WordPress Core

Ticket #28032: 28032.2.diff

File 28032.2.diff, 2.2 KB (added by rzen, 9 years ago)

Add notice of customizer with deep links to specific controls.

  • src/wp-admin/custom-background.php

    diff --git src/wp-admin/custom-background.php src/wp-admin/custom-background.php
    index a23efda..dd5e846 100644
    class Custom_Background { 
    233233<div class="wrap" id="custom-background">
    234234<h2><?php _e( 'Custom Background' ); ?></h2>
    235235
     236<div class="update-nag hide-if-no-customize">
     237        <p>
     238        <?php printf( __( 'You can now manage and live-preview Custom Backgrounds in the <a href="%1$s">Customizer</a>.' ), admin_url( 'customize.php?autofocus[section]=background_image' ) ); ?>
     239        </p>
     240</div>
     241
    236242<?php if ( ! empty( $this->updated ) ) { ?>
    237243<div id="message" class="updated">
    238244<p><?php printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p>
  • src/wp-admin/custom-header.php

    diff --git src/wp-admin/custom-header.php src/wp-admin/custom-header.php
    index a9aa537..a0ef9d4 100644
    class Custom_Image_Header { 
    522522<div class="wrap">
    523523<h2><?php _e( 'Custom Header' ); ?></h2>
    524524
     525<div class="update-nag hide-if-no-customize">
     526        <p>
     527        <?php printf( __( 'You can now manage and live-preview Custom Headers in the <a href="%1$s">Customizer</a>.' ), admin_url( 'customize.php?autofocus[section]=header_image' ) ); ?>
     528        </p>
     529</div>
     530
    525531<?php if ( ! empty( $this->updated ) ) { ?>
    526532<div id="message" class="updated">
    527533<p><?php printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p>
  • src/wp-admin/widgets.php

    diff --git src/wp-admin/widgets.php src/wp-admin/widgets.php
    index f4de378..8e76bcf 100644
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 
    312312<div class="wrap">
    313313<h2><?php echo esc_html( $title ); ?></h2>
    314314
     315<div class="updated hide-if-no-customize">
     316        <p>
     317                <?php printf( __( 'You can now manage and live-preview Widgets in the <a href="%1$s">Customizer</a>.' ), admin_url( 'customize.php?autofocus[panel]=widgets' ) ); ?>
     318        </p>
     319</div>
     320
    315321<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
    316322<div id="message" class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>
    317323<?php } ?>