WordPress.org

Make WordPress Core

Ticket #22461: 22461.3.diff

File 22461.3.diff, 1.3 KB (added by lessbloat, 17 months ago)
  • wp-admin/custom-header.php

     
    632632        $default_color = ' data-default-color="#' . esc_attr( get_theme_support( 'custom-header', 'default-text-color' ) ) . '"'; 
    633633?> 
    634634                <input type="text" name="text-color" id="text-color" value="#<?php echo esc_attr( $header_textcolor ); ?>"<?php echo $default_color; ?> /> 
     635                <?php if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) : ?> 
     636                        <span class="description hide-if-js"><?php printf( __( 'Default: #%s ' ), esc_attr( get_theme_support( 'custom-header', 'default-text-color' ) ) ); ?></span> 
     637                <?php endif; // default-text-color ?> 
    635638        </p> 
    636639</td> 
    637640</tr> 
    638641 
    639         <?php if ( current_theme_supports( 'custom-header', 'default-text-color' ) && get_theme_mod( 'header_textcolor' ) ) { ?> 
    640 <tr valign="top"> 
    641 <th scope="row"><?php _e('Reset Text Color'); ?></th> 
    642 <td> 
    643         <p><?php _e( 'This will restore the original header text. You will not be able to restore any customizations.' ) ?></p> 
    644         <?php submit_button( __( 'Restore Original Header Text' ), 'button', 'resettext', false ); ?> 
    645 </td> 
    646 </tr> 
    647         <?php } ?> 
    648  
    649642</tbody> 
    650643</table> 
    651644<?php endif;