From add3f255fbaa13644d4b71f855eb2cf51d13a64c Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Fri, 3 Nov 2023 17:21:55 -0700 Subject: [PATCH] Theme: Apply coding standards --- themes/wporg-5ftf/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/wporg-5ftf/functions.php b/themes/wporg-5ftf/functions.php index 6b74d861..f2451ed4 100644 --- a/themes/wporg-5ftf/functions.php +++ b/themes/wporg-5ftf/functions.php @@ -125,7 +125,7 @@ function scripts() { wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), - [ 'dashicons', 'open-sans' ], + array( 'dashicons', 'open-sans' ), filemtime( __DIR__ . '/css/style.css' ) ); @@ -192,7 +192,7 @@ function nojs_body_tag() { * @return string */ function loader_src( $src, $handle ) { - $cdn_urls = [ + $cdn_urls = array( 'dashicons', 'wp-embed', 'jquery-core', @@ -205,7 +205,7 @@ function loader_src( $src, $handle ) { 'wporg-plugins-stats', 'wporg-plugins-client', 'wporg-plugins-faq', - ]; + ); if ( defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED ) { return $src; @@ -217,7 +217,7 @@ function loader_src( $src, $handle ) { } // Remove version argument. - if ( in_array( $handle, [ 'open-sans' ], true ) ) { + if ( in_array( $handle, array( 'open-sans' ), true ) ) { $src = remove_query_arg( 'ver', $src ); }