Changeset 55988 for trunk/src/wp-includes/block-supports/duotone.php
- Timestamp:
- 06/22/2023 02:34:56 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/duotone.php
r55417 r55988 49 49 */ 50 50 function wp_tinycolor_bound01( $n, $max ) { 51 if ( 'string' === gettype( $n ) && false !== strpos( $n, '.' ) && 1 === (float) $n ) {51 if ( 'string' === gettype( $n ) && str_contains( $n, '.' ) && 1 === (float) $n ) { 52 52 $n = '100%'; 53 53 } … … 56 56 57 57 // Automatically convert percentage into number. 58 if ( 'string' === gettype( $n ) && false !== strpos( $n, '%' ) ) {58 if ( 'string' === gettype( $n ) && str_contains( $n, '%' ) ) { 59 59 $n = (int) ( $n * $max ) / 100; 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.