Make WordPress Core

Ticket #28032: 28032.6.diff

File 28032.6.diff, 2.4 KB (added by ocean90, 9 years ago)
  • src/wp-admin/custom-background.php

     
    238238<div class="wrap" id="custom-background">
    239239<h2><?php _e( 'Custom Background' ); ?></h2>
    240240
     241<?php if ( current_user_can( 'customize' ) ) { ?>
     242<div class="update-nag hide-if-no-customize">
     243        <p>
     244                <?php
     245                printf(
     246                        __( 'You can now manage and live-preview Custom Backgrounds in the <a href="%1$s">Customizer</a>.' ),
     247                        admin_url( 'customize.php?autofocus[control]=background_image' )
     248                );
     249                ?>
     250        </p>
     251</div>
     252<?php } ?>
     253
    241254<?php if ( ! empty( $this->updated ) ) { ?>
    242255<div id="message" class="updated">
    243256<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

     
    524524<div class="wrap">
    525525<h2><?php _e( 'Custom Header' ); ?></h2>
    526526
     527<?php if ( current_user_can( 'customize' ) ) { ?>
     528<div class="update-nag hide-if-no-customize">
     529        <p>
     530                <?php
     531                printf(
     532                        __( 'You can now manage and live-preview Custom Header in the <a href="%1$s">Customizer</a>.' ),
     533                        admin_url( 'customize.php?autofocus[control]=header_image' )
     534                );
     535                ?>
     536        </p>
     537</div>
     538<?php } ?>
     539
    527540<?php if ( ! empty( $this->updated ) ) { ?>
    528541<div id="message" class="updated">
    529542<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

     
    310310require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
    311311
    312312<div class="wrap">
    313 <h2><?php echo esc_html( $title ); ?></h2>
     313<h2>
     314<?php
     315        echo esc_html( $title );
     316        if ( current_user_can( 'customize' ) ) {
     317                printf(
     318                        ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>',
     319                        admin_url( 'customize.php?autofocus[panel]=widgets' ),
     320                        __( 'Manage in Customizer' )
     321                );
     322        }
     323?>
     324</h2>
    314325
    315326<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
    316327<div id="message" class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>