X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/874d2a2f468a0d1e69aab49b1fe2d9d79d3e1142..refs/tags/wordpress-4.1:/wp-includes/functions.wp-scripts.php diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php index ea719df3..6eb7a44f 100644 --- a/wp-includes/functions.wp-scripts.php +++ b/wp-includes/functions.wp-scripts.php @@ -21,7 +21,7 @@ * * @since 2.6.0 * - * @param array|bool $handles Optional. Scripts to be printed. Default 'false'. + * @param string|bool|array $handles Optional. Scripts to be printed. Default 'false'. * @return array On success, a processed array of WP_Dependencies items; otherwise, an empty array. */ function wp_print_scripts( $handles = false ) { @@ -90,20 +90,22 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_f * Works only if the script has already been added. * * Accepts an associative array $l10n and creates a JavaScript object: - * - * "$object_name" = { - * key: value, - * key: value, - * ... - * } - * + * + * "$object_name" = { + * key: value, + * key: value, + * ... + * } + * * * @see WP_Dependencies::localize() - * @link http://core.trac.wordpress.org/ticket/11520 + * @link https://core.trac.wordpress.org/ticket/11520 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts. * * @since 2.6.0 * + * @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_]+/'.