mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-24 23:34:30 +00:00
Move the l10n helper function into a seperate js file so we can always output it first.
Fixes #15124. git-svn-id: https://develop.svn.wordpress.org/trunk@16282 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -183,6 +183,9 @@ class WP_Scripts extends WP_Dependencies {
|
||||
if ( ! $this->default_dirs )
|
||||
return true;
|
||||
|
||||
if ( 0 === strpos( $src, '/wp-includes/js/l10n' ) )
|
||||
return false;
|
||||
|
||||
foreach ( (array) $this->default_dirs as $test ) {
|
||||
if ( 0 === strpos($src, $test) )
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user