Skip to content

Commit 66c9770

Browse files
authored
Sync changes from production
1 parent 26e6def commit 66c9770

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

themes/wporg-5ftf/functions.php

Lines changed: 8 additions & 8 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-
array( 'dashicons', 'open-sans' ),
128+
[ '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 = array(
195+
$cdn_urls = [
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, array( 'open-sans' ), true ) ) {
220+
if ( in_array( $handle, [ 'open-sans' ], true ) ) {
221221
$src = remove_query_arg( 'ver', $src );
222222
}
223223

@@ -281,14 +281,14 @@ function get_badge_classes( $team ) {
281281
$classes = array( 'badge-openverse', 'dashicons-search' );
282282
break;
283283

284-
case 'plugin review team':
285-
$classes = array( 'badge-plugins-reviewer', 'dashicons-admin-plugins' );
286-
break;
287-
288284
case 'photos team':
289285
$classes = array( 'badge-photos', 'dashicons-camera' );
290286
break;
291287

288+
case 'plugin review team':
289+
$classes = array( 'badge-plugins-reviewer', 'dashicons-admin-plugins' );
290+
break;
291+
292292
case 'polyglots team':
293293
$classes = array( 'badge-translation-editor', 'dashicons-translation' );
294294
break;

0 commit comments

Comments
 (0)