From 3b57824722f75774f11e1e00678925c68072764d Mon Sep 17 00:00:00 2001 From: desrosj Date: Fri, 4 Oct 2024 13:19:17 +0000 Subject: [PATCH] Coding Standards: Committing changes after `composer format`. This commits some minor changes made when running `composer format`. Follow up to [58975], [59011], [59115]. See #61103, #62014, #61648. Built from https://develop.svn.wordpress.org/trunk@59166 git-svn-id: http://core.svn.wordpress.org/trunk@58561 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 2 +- wp-admin/includes/upgrade.php | 6 +++--- wp-includes/blocks.php | 2 +- wp-includes/version.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index d112130ecf..a99a6fb9aa 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -1247,7 +1247,7 @@ class WP_Debug_Data { private static function get_wp_mu_plugins(): array { // List must use plugins if there are any. $mu_plugins = get_mu_plugins(); - $fields = array(); + $fields = array(); foreach ( $mu_plugins as $plugin_path => $plugin ) { $plugin_version = $plugin['Version']; diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 08d04ae2f1..090a5f1853 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -992,9 +992,9 @@ function upgrade_110() { $time_difference = $all_options->time_difference; - $server_time = time() + gmdate( 'Z' ); - $weblogger_time = $server_time + $time_difference * HOUR_IN_SECONDS; - $gmt_time = time(); + $server_time = time() + gmdate( 'Z' ); + $weblogger_time = $server_time + $time_difference * HOUR_IN_SECONDS; + $gmt_time = time(); $diff_gmt_server = ( $gmt_time - $server_time ) / HOUR_IN_SECONDS; $diff_weblogger_server = ( $weblogger_time - $server_time ) / HOUR_IN_SECONDS; diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 34f1d921dd..9d8f4bfaf9 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -2533,7 +2533,7 @@ function build_query_vars_from_query_block( $block, $page ) { // Add any remaining formats to the formats query. if ( ! empty( $formats ) ) { // Add the `post-format-` prefix. - $terms = array_map( + $terms = array_map( static function ( $format ) { return "post-format-$format"; }, diff --git a/wp-includes/version.php b/wp-includes/version.php index 669c5ce45e..b0a8747ffa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-beta1-59165'; +$wp_version = '6.7-beta1-59166'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.