Make WordPress Core

Ticket #28032: 28032.3.diff

File 28032.3.diff, 702 bytes (added by rzen, 9 years ago)

Change widgets notice to button

  • src/wp-admin/widgets.php

    diff --git src/wp-admin/widgets.php src/wp-admin/widgets.php
    index f4de378..69d5a27 100644
    $errors = array( 
    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        printf( ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>', admin_url( 'customize.php?autofocus[panel]=widgets' ), __( 'Manage in Customizer' ) );
     317?>
     318</h2>
    314319
    315320<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?>
    316321<div id="message" class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>