Make WordPress Core

Changeset 59343 for branches/6.7


Ignore:
Timestamp:
11/04/2024 11:34:45 PM (23 months ago)
Author:
peterwilsoncc
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].

Reviewed by swissspidy.
Merges [59341] to the 6.7 branch.

Props justlevine, mukesh27, swissspidy, SergeyBiryukov.
See #52217, #61485.

Location:
branches/6.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.7

  • branches/6.7/src/wp-admin/load-styles.php

    r58935 r59343  
    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.