- Timestamp:
- 11/18/2013 11:11:01 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php
r26227 r26260 98 98 foreach ( $rgb as $value ) { 99 99 $value += $steps; 100 if ( $value > 255 ) 100 if ( $value > 255 ) { 101 101 $value = 255; 102 elseif ( $value < 0 )102 } elseif ( $value < 0 ) { 103 103 $value = 0; 104 } 104 105 $hex .= str_pad( dechex( $value ), 2, '0', STR_PAD_LEFT); 105 106 } … … 155 156 156 157 // Don't do anything if the current color is the default. 157 if ( '#24890d' === $accent_color ) 158 if ( '#24890d' === $accent_color ) { 158 159 return; 160 } 159 161 160 162 $accent_mid = get_theme_mod( 'accent_mid' );
Note: See TracChangeset
for help on using the changeset viewer.