Make WordPress Core

Changeset 59341


Ignore:
Timestamp:
11/04/2024 03:49:26 PM (3 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/load-styles.php

    r58935 r59341  
    5656wp_default_styles( $wp_styles );
    5757
    58 $etag = $wp_styles->get_etag( $wp_version, $load );
     58$etag = $wp_styles->get_etag( $load );
    5959
    6060if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) && stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) === $etag ) {
Note: See TracChangeset for help on using the changeset viewer.