mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-08 22:54:36 +00:00
Unique load array in load-scripts and load-styles.
git-svn-id: https://develop.svn.wordpress.org/trunk@24868 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user