Skip to content

Commit 6996faa

Browse files
Script Loader: Correct the number of arguments passed to WP_Styles::get_etag().
This fixes an issue with the usage of the new `$wp_styles->get_etag()` method in `wp-admin/load-styles.php`, where `$wp_version` is passed as the first argument instead of `$load` being used as the ''only'' argument. Follow-up to [58935]. Props justlevine, mukesh27, swissspidy. See #52217, #61485. git-svn-id: https://develop.svn.wordpress.org/trunk@59341 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 16de833 commit 6996faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-admin/load-styles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
$wp_styles = new WP_Styles();
5656
wp_default_styles( $wp_styles );
5757

58-
$etag = $wp_styles->get_etag( $wp_version, $load );
58+
$etag = $wp_styles->get_etag( $load );
5959

6060
if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $etag ) {
6161
header( "$protocol 304 Not Modified" );

0 commit comments

Comments
 (0)