Skip to content

Commit

Permalink
Unique load array in load-scripts and load-styles.
Browse files Browse the repository at this point in the history
git-svn-id: http://core.svn.wordpress.org/trunk@24868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Jul 29, 2013
1 parent e0c4fc0 commit 93ca609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wp-admin/load-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function get_file($path) {
$load = implode( '', $load );

$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
$load = explode(',', $load);
$load = array_unique( explode( ',', $load ) );

if ( empty($load) )
exit;
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/load-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function get_file($path) {
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;
Expand Down

0 comments on commit 93ca609

Please sign in to comment.