Skip to content

Commit

Permalink
Actually fix color deprecation notices. (#36789)
Browse files Browse the repository at this point in the history
* Fixing deprecation notices for precision loss.

* Changelog.
  • Loading branch information
zinigor committed Apr 8, 2024
1 parent 4eb0ef3 commit d11d5af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/_inc/lib/class.color.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function fromRgbInt( $red, $green, $blue ) {
throw new RangeException( 'Blue value ' . $blue . ' out of valid color code range' );
}

$this->color = intval( ( $red << 16 ) + ( $green << 8 ) + $blue );
$this->color = ( intval( $red ) << 16 ) + ( intval( $green ) << 8 ) + intval( $blue );

return $this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Theme Tools: fix deprecation notices in the color management library.

0 comments on commit d11d5af

Please sign in to comment.