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.
Built from https://develop.svn.wordpress.org/trunk@59341


git-svn-id: http://core.svn.wordpress.org/trunk@58727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2024-11-04 15:51:17 +00:00
parent 5d262aaf83
commit ea4d309d36
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ $out = '';
$wp_styles = new WP_Styles();
wp_default_styles( $wp_styles );
$etag = $wp_styles->get_etag( $wp_version, $load );
$etag = $wp_styles->get_etag( $load );
if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $etag ) {
header( "$protocol 304 Not Modified" );

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59340';
$wp_version = '6.8-alpha-59341';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.