@@ -217,7 +217,8 @@ |
||
| 217 | 217 | } |
| 218 | 218 | // If 'choice' is defined check for sub-values too. |
| 219 | 219 | // Fixes https://github.com/aristath/kirki/issues/1416. |
| 220 | - if ( isset( $output['choice'] ) && isset( $value[ $output['choice'] ] ) && $exclude == $value[ $output['choice'] ] ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison |
|
| 220 | + if ( isset( $output['choice'] ) && isset( $value[ $output['choice'] ] ) && $exclude == $value[ $output['choice'] ] ) { |
|
| 221 | +// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison |
|
| 221 | 222 | $skip = true; |
| 222 | 223 | } |
| 223 | 224 | } |
@@ -453,7 +453,8 @@ |
||
| 453 | 453 | $variants = array_keys( $this->files ); |
| 454 | 454 | } |
| 455 | 455 | foreach ( $this->files as $variant => $file ) { |
| 456 | - if ( in_array( $variant, $variants ) ) { // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict |
|
| 456 | + if ( in_array( $variant, $variants ) ) { |
|
| 457 | +// phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict |
|
| 457 | 458 | $this->download_font_file( $file ); |
| 458 | 459 | } |
| 459 | 460 | } |
@@ -441,7 +441,8 @@ |
||
| 441 | 441 | if ( 'contains' === $operator || 'in' === $operator ) { |
| 442 | 442 | if ( is_array( $value1 ) && is_array( $value2 ) ) { |
| 443 | 443 | foreach ( $value2 as $val ) { |
| 444 | - if ( in_array( $val, $value1 ) ) { // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict |
|
| 444 | + if ( in_array( $val, $value1 ) ) { |
|
| 445 | +// phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict |
|
| 445 | 446 | return true; |
| 446 | 447 | } |
| 447 | 448 | } |