From 98b3a8d314cb10a6b3f6912f5afbddbd7a289b65 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 5 Feb 2024 03:42:11 +0000 Subject: [PATCH] Coding Standards: Rename the `$expires_offset` variable in `cache_javascript_headers()`. This resolves a WPCS warning: {{{ Variable "$expiresOffset" is not in valid snake_case format, try "$expires_offset" }}} Follow-up to [4109], [21996]. See #59650. Built from https://develop.svn.wordpress.org/trunk@57532 git-svn-id: http://core.svn.wordpress.org/trunk@57033 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 17319c7f46..9373036210 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1548,11 +1548,11 @@ function nocache_headers() { * @since 2.1.0 */ function cache_javascript_headers() { - $expiresOffset = 10 * DAY_IN_SECONDS; + $expires_offset = 10 * DAY_IN_SECONDS; header( 'Content-Type: text/javascript; charset=' . get_bloginfo( 'charset' ) ); header( 'Vary: Accept-Encoding' ); // Handle proxies. - header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expiresOffset ) . ' GMT' ); + header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expires_offset ) . ' GMT' ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 5fea95cec6..72c0faa349 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-alpha-57531'; +$wp_version = '6.5-alpha-57532'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.