WordPress.org

Make WordPress Core

Changeset 25135


Ignore:
Timestamp:
08/27/13 12:27:00 (8 months ago)
Author:
nacin
Message:

Only show 'Preview' on the custom header screen if there is something to show.

props nickmomrik.
fixes #14531.

File:
1 edited

Legend:

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

    r23873 r25135  
    465465<tbody> 
    466466 
     467<?php if ( get_custom_header() || display_header_text() ) : ?> 
    467468<tr valign="top"> 
    468469<th scope="row"><?php _e( 'Preview' ); ?></th> 
     
    491492</td> 
    492493</tr> 
     494<?php endif; ?> 
     495 
    493496<?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?> 
    494497<tr valign="top"> 
Note: See TracChangeset for help on using the changeset viewer.