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:
@@ -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'";
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user