Coding Standards: Improve formatting/readability of if statement in WP_Styles constructor.

Follow-up to [46287].

See #64226, #42804.

Built from https://develop.svn.wordpress.org/trunk@61389


git-svn-id: http://core.svn.wordpress.org/trunk@60701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter
2025-12-17 06:57:40 +00:00
parent 8ec8ae6eda
commit 4d1374325b
2 changed files with 10 additions and 4 deletions

View File

@@ -118,9 +118,15 @@ class WP_Styles extends WP_Dependencies {
*/
public function __construct() {
if (
function_exists( 'is_admin' ) && ! is_admin()
&&
function_exists( 'current_theme_supports' ) && ! current_theme_supports( 'html5', 'style' )
(
function_exists( 'is_admin' ) &&
! is_admin()
)
&&
(
function_exists( 'current_theme_supports' ) &&
! current_theme_supports( 'html5', 'style' )
)
) {
$this->type_attr = " type='text/css'";
}

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.0-alpha-61388';
$wp_version = '7.0-alpha-61389';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.