mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 03:34:33 +00:00
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:
@@ -138,11 +138,10 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f
|
||||
*
|
||||
* @todo Documentation cleanup
|
||||
*
|
||||
* @param string $handle Script handle the data will be attached to.
|
||||
* @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable.
|
||||
* Example: '/[a-zA-Z0-9_]+/'.
|
||||
* @param array|callable $l10n The data itself. The data can be either a single or multi-dimensional array. If a callable
|
||||
* is passed, it will be invoked at runtime.
|
||||
* @param string $handle Script handle the data will be attached to.
|
||||
* @param string $object_name Name for the JavaScript object. Passed directly, so it should be qualified JS variable.
|
||||
* Example: '/[a-zA-Z0-9_]+/'.
|
||||
* @param array $l10n The data itself. The data can be either a single or multi-dimensional array.
|
||||
* @return bool True if the script was successfully localized, false otherwise.
|
||||
*/
|
||||
function wp_localize_script( $handle, $object_name, $l10n ) {
|
||||
|
||||
Reference in New Issue
Block a user