From 4d1374325bd17e005c83cbfc96deba5682ab7bfb Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 17 Dec 2025 06:57:40 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-styles.php | 12 +++++++++--- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-styles.php b/wp-includes/class-wp-styles.php index 2af3581d9a..2e037f1288 100644 --- a/wp-includes/class-wp-styles.php +++ b/wp-includes/class-wp-styles.php @@ -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'"; } diff --git a/wp-includes/version.php b/wp-includes/version.php index af36fda802..7d5071b192 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.