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:
parent
5d262aaf83
commit
ea4d309d36
|
@ -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" );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue