mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-01 00:10:36 +01:00
Unique load array in load-scripts and load-styles.
git-svn-id: http://core.svn.wordpress.org/trunk@24868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0c4fc0032
commit
93ca609f53
@ -119,7 +119,7 @@ if ( is_array( $load ) )
|
||||
$load = implode( '', $load );
|
||||
|
||||
$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
|
||||
$load = explode(',', $load);
|
||||
$load = array_unique( explode( ',', $load ) );
|
||||
|
||||
if ( empty($load) )
|
||||
exit;
|
||||
|
@ -96,7 +96,7 @@ require(ABSPATH . '/wp-includes/script-loader.php');
|
||||
require(ABSPATH . '/wp-includes/version.php');
|
||||
|
||||
$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $_GET['load'] );
|
||||
$load = explode(',', $load);
|
||||
$load = array_unique( explode( ',', $load ) );
|
||||
|
||||
if ( empty($load) )
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user