[wp-trac] [WordPress Trac] #40057: Double hashed value for background-color of body.background-color
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Mar  7 10:35:00 UTC 2017
    
    
  
#40057: Double hashed value for background-color of body.background-color
---------------------------------+-----------------------------
 Reporter:  hovhanneshovakimyan  |      Owner:
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  Awaiting Review
Component:  Themes               |    Version:  4.7.3
 Severity:  normal               |   Keywords:
  Focuses:                       |
---------------------------------+-----------------------------
 The problem is that body.custom-background has background-color property
 which gets double hashed value.
 So if theme is supporting custom background features, then you'll get
 wrong (double hashed) background-color value all the time.
 I have already found the cause of the problem.
 Check this file:
 wp-includes/theme.php
 on line: 1564
 change this:
 $style = $color ? "background-color: #$color;" : '';
 to this:
 $style = $color ? "background-color: $color;" : '';
 That will solve the problem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40057>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list