Make WordPress Core

Changeset 61389


Ignore:
Timestamp:
12/17/2025 06:55:51 AM (10 months ago)
Author:
westonruter
Message:

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

Follow-up to [46287].

See #64226, #42804.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-styles.php

    r61358 r61389  
    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'";
Note: See TracChangeset for help on using the changeset viewer.