From ea4d309d367349a51337e78cdcd361158da7c75e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 4 Nov 2024 15:51:17 +0000 Subject: [PATCH] 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 --- wp-admin/load-styles.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/load-styles.php b/wp-admin/load-styles.php index 083c3832eb..3bdfcc7a22 100644 --- a/wp-admin/load-styles.php +++ b/wp-admin/load-styles.php @@ -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" ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 0a895dc4c8..287363254e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.