WordPress.org

Make WordPress Core

Ticket #22461: 22461.2.diff

File 22461.2.diff, 1.1 KB (added by DrewAPicture, 6 years ago)

+ no-js label

  • wp-admin/custom-header.php

     
    633633?>
    634634                <input type="text" name="text-color" id="text-color" value="#<?php echo esc_attr( $header_textcolor ); ?>"<?php echo $default_color; ?> />
    635635        </p>
     636<?php if ( current_theme_supports( 'custom-header', 'default-text-color' ) ) : ?>
     637        <p class="hide-if-js"><?php printf( __( 'Default: #%s ' ), esc_attr( get_theme_support( 'custom-header', 'default-text-color' ) ) ); ?></p>
     638<?php endif; // default-text-color ?>
    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;