From 8d47e6497180221ad2e180e65bedce5ba4f4b2f8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 5 Feb 2024 03:40:25 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@57532 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 17319c7f46..9373036210 100644 --- a/src/wp-includes/functions.php +++ b/src/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' ); } /**