Revert [28840]; wp_localize_script() must be called on a registered handle.
see #24724. Built from https://develop.svn.wordpress.org/trunk@29677 git-svn-id: http://core.svn.wordpress.org/trunk@29452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
78e400da8e
commit
6af7341655
|
@ -116,7 +116,8 @@ function wp_localize_script( $handle, $object_name, $l10n ) {
|
|||
if ( ! did_action( 'init' ) )
|
||||
_doing_it_wrong( __FUNCTION__, sprintf( __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
|
||||
'<code>wp_enqueue_scripts</code>', '<code>admin_enqueue_scripts</code>', '<code>login_enqueue_scripts</code>' ), '3.3' );
|
||||
$wp_scripts = new WP_Scripts();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return $wp_scripts->localize( $handle, $object_name, $l10n );
|
||||
|
|
Loading…
Reference in New Issue