WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/20/2014 03:28:55 PM (5 years ago)
Author:
ocean90
Message:

Customizer: Use deep-links for Backgrounds, Headers, and Widgets.

Replace links in admin menu and toolbar to Custom Background/Header screen with deep-links to the Customizer section.
On the Widgets screen display a link to the Customizer widgets panel.

props topher1kenobe, rzen, celloexpressions, westonruter
fixes #25569, #25571, #28032.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets.php

    r30356 r30459  
    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']]) ) { ?>
Note: See TracChangeset for help on using the changeset viewer.