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:
Andrew Nacin 2013-07-29 17:57:04 +00:00
parent e0c4fc0032
commit 93ca609f53
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;