Editor: Prevent PHP warning when parsing duotone hue values.
Props jacobcassidy, rahmohn, mukesh27. Fixes #59496. Built from https://develop.svn.wordpress.org/trunk@57652 git-svn-id: http://core.svn.wordpress.org/trunk@57153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f76da9b636
commit
0f6fc935fe
|
@ -209,10 +209,7 @@ class WP_Duotone {
|
|||
'rad' => 360 / ( M_PI * 2 ),
|
||||
);
|
||||
|
||||
$factor = $angle_units[ $unit ];
|
||||
if ( ! $factor ) {
|
||||
$factor = 1;
|
||||
}
|
||||
$factor = isset( $angle_units[ $unit ] ) ? $angle_units[ $unit ] : 1;
|
||||
|
||||
return (float) $value * $factor;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-beta1-57651';
|
||||
$wp_version = '6.5-beta1-57652';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue