mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@45456 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,8 +20,10 @@ require( ABSPATH . WPINC . '/version.php' );
|
||||
|
||||
$load = $_GET['load'];
|
||||
if ( is_array( $load ) ) {
|
||||
ksort( $load );
|
||||
$load = implode( '', $load );
|
||||
}
|
||||
|
||||
$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
|
||||
$load = array_unique( explode( ',', $load ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user