X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8a06f4f9392d1ac373442f82ee40428a3cb81395..9c2096d803812dacbdf6cf8efe90053e39f00b96:/wp-includes/functions.wp-scripts.php
diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php
index 87995a4b..228a3bfe 100644
--- a/wp-includes/functions.wp-scripts.php
+++ b/wp-includes/functions.wp-scripts.php
@@ -1,14 +1,22 @@
wp_enqueue_scripts', 'admin_enqueue_scripts
', 'init
' ), '3.3' );
+
if ( !$handles )
- return array(); // No need to instantiate if nothing's there.
+ return array(); // No need to instantiate if nothing is there.
else
$wp_scripts = new WP_Scripts();
}
@@ -26,52 +38,151 @@ function wp_print_scripts( $handles = false ) {
return $wp_scripts->do_items( $handles );
}
-function wp_register_script( $handle, $src, $deps = array(), $ver = false ) {
+/**
+ * Register new Javascript file.
+ *
+ * @since r16
+ * @param string $handle Script name
+ * @param string $src Script url
+ * @param array $deps (optional) Array of script names on which this script depends
+ * @param string|bool $ver (optional) Script version (used for cache busting), set to NULL to disable
+ * @param bool $in_footer (optional) Whether to enqueue the script before or before