mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-23 17:22:43 +00:00
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
This commit is contained in:
parent
ac240f068d
commit
8d47e64971
@ -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' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user