Skip to content

Commit

Permalink
Sync changes from production
Browse files Browse the repository at this point in the history
  • Loading branch information
pkevan authored Jun 26, 2024
1 parent 26e6def commit 66c9770
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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' ),
array( 'dashicons', 'open-sans' ),
[ 'dashicons', 'open-sans' ],

Check failure on line 128 in themes/wporg-5ftf/functions.php

View workflow job for this annotation

GitHub Actions / PHP CodeSniffer

Short array syntax is not allowed
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 = array(
$cdn_urls = [

Check failure on line 195 in themes/wporg-5ftf/functions.php

View workflow job for this annotation

GitHub Actions / PHP CodeSniffer

Short array syntax is not allowed
'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, array( 'open-sans' ), true ) ) {
if ( in_array( $handle, [ 'open-sans' ], true ) ) {

Check failure on line 220 in themes/wporg-5ftf/functions.php

View workflow job for this annotation

GitHub Actions / PHP CodeSniffer

Short array syntax is not allowed
$src = remove_query_arg( 'ver', $src );
}

Expand Down Expand Up @@ -281,14 +281,14 @@ function get_badge_classes( $team ) {
$classes = array( 'badge-openverse', 'dashicons-search' );
break;

case 'plugin review team':
$classes = array( 'badge-plugins-reviewer', 'dashicons-admin-plugins' );
break;

case 'photos team':
$classes = array( 'badge-photos', 'dashicons-camera' );
break;

case 'plugin review team':
$classes = array( 'badge-plugins-reviewer', 'dashicons-admin-plugins' );
break;

case 'polyglots team':
$classes = array( 'badge-translation-editor', 'dashicons-translation' );
break;
Expand Down

0 comments on commit 66c9770

Please sign in to comment.