Skip to content

Commit 0769fa6

Browse files
authored
avoid short array syntax
1 parent 0c1583f commit 0769fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
$class = 'all-options disabled';
417417
}
418418
} else {
419-
if ( in_array( $option->option_name, [ 'siteurl', 'home' ], true ) && defined( 'WP_' . strtoupper( $option->option_name ) ) ) {
419+
if ( in_array( $option->option_name, array( 'siteurl', 'home' ), true ) && defined( 'WP_' . strtoupper( $option->option_name ) ) ) {
420420
// If a setting is defined in wp-config.php, disable the respective field.
421421
$disabled = true;
422422
}

0 commit comments

Comments
 (0)