Commit 4d1374325b for wordpress.org
commit 4d1374325bd17e005c83cbfc96deba5682ab7bfb
Author: Weston Ruter <weston@xwp.co>
Date: Wed Dec 17 06:57:40 2025 +0000
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
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.