Changeset 51401
- Timestamp:
- 07/10/2021 06:42:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/inc/custom-header.php
r48782 r51401 59 59 $color = trim( $color, '#' ); 60 60 61 if ( strlen( $color ) == 3 ) {61 if ( strlen( $color ) === 3 ) { 62 62 $r = hexdec( substr( $color, 0, 1 ) . substr( $color, 0, 1 ) ); 63 63 $g = hexdec( substr( $color, 1, 1 ) . substr( $color, 1, 1 ) ); 64 64 $b = hexdec( substr( $color, 2, 1 ) . substr( $color, 2, 1 ) ); 65 } elseif ( strlen( $color ) == 6 ) {65 } elseif ( strlen( $color ) === 6 ) { 66 66 $r = hexdec( substr( $color, 0, 2 ) ); 67 67 $g = hexdec( substr( $color, 2, 2 ) );
Note: See TracChangeset
for help on using the changeset viewer.