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
This commit is contained in:
parent
91b28e5a07
commit
98b3a8d314
|
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue