Skip to content

Commit bbc6029

Browse files
committed
Coding Standards: Improve formatting/readability of if statement in WP_Styles constructor.
Follow-up to [46287]. See #64226, #42804. git-svn-id: https://develop.svn.wordpress.org/trunk@61389 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 37456c9 commit bbc6029

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,15 @@ class WP_Styles extends WP_Dependencies {
118118
*/
119119
public function __construct() {
120120
if (
121-
function_exists( 'is_admin' ) && ! is_admin()
122-
&&
123-
function_exists( 'current_theme_supports' ) && ! current_theme_supports( 'html5', 'style' )
121+
(
122+
function_exists( 'is_admin' ) &&
123+
! is_admin()
124+
)
125+
&&
126+
(
127+
function_exists( 'current_theme_supports' ) &&
128+
! current_theme_supports( 'html5', 'style' )
129+
)
124130
) {
125131
$this->type_attr = " type='text/css'";
126132
}

0 commit comments

Comments
 (0)