Make WordPress Core

Changeset 34702


Ignore:
Timestamp:
09/29/2015 09:39:55 PM (9 years ago)
Author:
wonderboymusic
Message:

Customizer: make "Current header" clickable in the same way that "Background Image" is - will open the media modal.

Props umesh.nevase.
Fixes #33586.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r34563 r34702  
    13001300            </p>
    13011301            <div class="current">
    1302                 <span class="customize-control-title">
    1303                     <?php _e( 'Current header' ); ?>
    1304                 </span>
     1302                <label for="header_image-button">
     1303                    <span class="customize-control-title">
     1304                        <?php _e( 'Current header' ); ?>
     1305                    </span>
     1306                </label>
    13051307                <div class="container">
    1306                 </div>
     1308                </div>             
    13071309            </div>
    13081310            <div class="actions">
    13091311                <?php if ( current_user_can( 'upload_files' ) ): ?>
    13101312                <button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
    1311                 <button type="button" class="button new" aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>
     1313                <button type="button" class="button new" id="header_image-button"  aria-label="<?php esc_attr_e( 'Add new header image' ); ?>"><?php _e( 'Add new image' ); ?></button>
    13121314                <div style="clear:both"></div>
    13131315                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.