Skip to content

Commit f4b1ccb

Browse files
joedolsonsirreal
andauthored
Update src/wp-includes/class-wp-scripts.php
Co-authored-by: Jon Surrell <[email protected]>
1 parent f2011cd commit f4b1ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-scripts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function do_item( $handle, $group = false ) {
292292
$src = $obj->src;
293293
$strategy = $this->get_eligible_loading_strategy( $handle );
294294
$intended_strategy = (string) $this->get_data( $handle, 'strategy' );
295-
$conditional = isset( $obj->extra['conditional'] ) ? true : false;
295+
$conditional = (bool) ( $obj->extra['conditional'] ?? false );
296296
if ( $conditional ) {
297297

298298
return false;

0 commit comments

Comments
 (0)