WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #19449


Ignore:
Timestamp:
08/21/13 19:51:21 (2 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19449

    • Property Keywords 2nd-opinion removed
    • Property Status changed from new to closed
    • Property Resolution changed from to wontfix
    • Property Milestone changed from Awaiting Review to
  • Ticket #19449 – Description

    initial v2  
    44 
    55Old: 
     6{{{ 
    67if (this.value && this.value != fb.color) { 
     8}}} 
    79 
    810New: 
     11{{{ 
    912if (this.value != fb.color) { 
    10  
     13}}} 
    1114 
    1215Looks like WP is working around this for the 'custom background' for themes (which is empty by default) by adding a hardcoded '#' and saving the background-color without '#'  
    1316 
    1417/wp-includes/theme.php, line 1772: 
     18{{{ 
    1519$style = $color ? "background-color: #$color;" : ''; 
     20}}} 
    1621 
    1722/wp-admin/custom-background.php, line 303: 
     23{{{ 
    1824<input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr(get_background_color()) ?>" /> 
    19  
     25}}}