Skip to content

Commit add3f25

Browse files
committed
Theme: Apply coding standards
1 parent 019b814 commit add3f25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

themes/wporg-5ftf/functions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function scripts() {
125125
wp_enqueue_style(
126126
'wporg-style',
127127
get_theme_file_uri( '/css/style.css' ),
128-
[ 'dashicons', 'open-sans' ],
128+
array( 'dashicons', 'open-sans' ),
129129
filemtime( __DIR__ . '/css/style.css' )
130130
);
131131

@@ -192,7 +192,7 @@ function nojs_body_tag() {
192192
* @return string
193193
*/
194194
function loader_src( $src, $handle ) {
195-
$cdn_urls = [
195+
$cdn_urls = array(
196196
'dashicons',
197197
'wp-embed',
198198
'jquery-core',
@@ -205,7 +205,7 @@ function loader_src( $src, $handle ) {
205205
'wporg-plugins-stats',
206206
'wporg-plugins-client',
207207
'wporg-plugins-faq',
208-
];
208+
);
209209

210210
if ( defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED ) {
211211
return $src;
@@ -217,7 +217,7 @@ function loader_src( $src, $handle ) {
217217
}
218218

219219
// Remove version argument.
220-
if ( in_array( $handle, [ 'open-sans' ], true ) ) {
220+
if ( in_array( $handle, array( 'open-sans' ), true ) ) {
221221
$src = remove_query_arg( 'ver', $src );
222222
}
223223

0 commit comments

Comments
 (0)