Ticket #22461: 22461.4.diff
File 22461.4.diff, 1.3 KB (added by , 12 years ago) |
---|
-
wp-admin/custom-header.php
632 632 $default_color = ' data-default-color="#' . esc_attr( get_theme_support( 'custom-header', 'default-text-color' ) ) . '"'; 633 633 ?> 634 634 <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 ?> 635 638 </p> 636 639 </td> 637 640 </tr> 638 641 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 649 642 </tbody> 650 643 </table> 651 644 <?php endif;