Make WordPress Core


Ignore:
Timestamp:
05/28/2019 02:42:24 AM (5 years ago)
Author:
azaozz
Message:

Script loader: prevent sorting of the load array in the query string when passing the script handles to load-scripts.php and load-styles.php.

Fixes #45346 #26886.

File:
1 edited

Legend:

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

    r43580 r45456  
    2121$load = $_GET['load'];
    2222if ( is_array( $load ) ) {
     23    ksort( $load );
    2324    $load = implode( '', $load );
    2425}
     26
    2527$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
    2628$load = array_unique( explode( ',', $load ) );
Note: See TracChangeset for help on using the changeset viewer.