Make WordPress Core


Ignore:
Timestamp:
01/21/2016 10:00:42 PM (9 years ago)
Author:
westonruter
Message:

Customizer: Hide help toggle button in panel when no description is supplied.

This aligns with the .customize-panel-description element which is also excluded if there is no description.

Props drebbits.web.
Fixes #35540.

File:
1 edited

Legend:

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

    r35386 r36374  
    373373                    echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">{{ data.title }}</strong>' );
    374374                ?></span>
    375                 <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
     375                <# if ( data.description ) { #>
     376                    <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
     377                <# } #>
    376378            </div>
    377379            <# if ( data.description ) { #>
Note: See TracChangeset for help on using the changeset viewer.