Revert [31030] and [31033]. Incidentally, there is no lazy-loading happening here anyway.

Pushing #26111 to future.


git-svn-id: https://develop.svn.wordpress.org/trunk@32124 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-04-14 15:12:49 +00:00
parent a8c4455adc
commit fbdbba9e01
2 changed files with 5 additions and 10 deletions

View File

@@ -163,7 +163,7 @@ class WP_Scripts extends WP_Dependencies {
$tag = "{$cond_before}<script type='text/javascript' src='$src'></script>\n{$cond_after}";
/**
/**
* Filter the HTML script tag of an enqueued script.
*
* @since 4.1.0
@@ -192,10 +192,6 @@ class WP_Scripts extends WP_Dependencies {
if ( $handle === 'jquery' )
$handle = 'jquery-core';
if ( is_callable( $l10n ) ) {
$l10n = call_user_func( $l10n, $handle, $object_name );
}
if ( is_array($l10n) && isset($l10n['l10n_print_after']) ) { // back compat, preserve the code in 'l10n_print_after' if present
$after = $l10n['l10n_print_after'];
unset($l10n['l10n_print_after']);