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:
Peter Westwood
2010-11-10 21:53:30 +00:00
parent e6d62aeb48
commit 6b1be702c4
6 changed files with 34 additions and 24 deletions

View File

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