Skip to content

Commit

Permalink
Theme: Apply coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Nov 4, 2023
1 parent 019b814 commit add3f25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/wporg-5ftf/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
);

Expand Down Expand Up @@ -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',
Expand All @@ -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;
Expand All @@ -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 );
}

Expand Down

0 comments on commit add3f25

Please sign in to comment.