WordPress.org

Make WordPress Core

Ticket #22509: 22509.diff

File 22509.diff, 820 bytes (added by DrewAPicture, 17 months ago)
  • wp-admin/custom-background.php

     
    330330        $default_color = ' data-default-color="#' . esc_attr( get_theme_support( 'custom-background', 'default-color' ) ) . '"'; 
    331331?> 
    332332<input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr( get_background_color() ); ?>"<?php echo $default_color ?> /> 
     333<?php if ( current_theme_supports( 'custom-background', 'default-color' ) ) : ?> 
     334        <span class="description hide-if-js"><?php printf( __( 'Default: #%s' ), esc_attr( get_theme_support( 'custom-background', 'default-color' ) ) ); ?></span> 
     335<?php endif; // default-color ?> 
    333336</fieldset></td> 
    334337</tr> 
    335338</tbody>