phpdoc corrections from jacobsantos. see #7918

git-svn-id: http://svn.automattic.com/wordpress/trunk@9243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-10-18 20:46:30 +00:00
parent 782e278c72
commit 3fc6097a5a
10 changed files with 110 additions and 44 deletions

View File

@@ -34,6 +34,12 @@ function wp_print_scripts( $handles = false ) {
return $wp_scripts->do_items( $handles );
}
/**
* Register new JavaScript file.
*
* @since r16
* @see WP_Scripts::add() For parameter information.
*/
function wp_register_script( $handle, $src, $deps = array(), $ver = false ) {
global $wp_scripts;
if ( !is_a($wp_scripts, 'WP_Scripts') )
@@ -43,10 +49,11 @@ function wp_register_script( $handle, $src, $deps = array(), $ver = false ) {
}
/**
* Localizes a script
* Localizes a script.
*
* Localizes only if script has already been added
* Localizes only if script has already been added.
*
* @since r16
* @see WP_Script::localize()
*/
function wp_localize_script( $handle, $object_name, $l10n ) {
@@ -57,6 +64,12 @@ function wp_localize_script( $handle, $object_name, $l10n ) {
return $wp_scripts->localize( $handle, $object_name, $l10n );
}
/**
* Remove a registered script.
*
* @since r16
* @see WP_Scripts::remove() For parameter information.
*/
function wp_deregister_script( $handle ) {
global $wp_scripts;
if ( !is_a($wp_scripts, 'WP_Scripts') )
@@ -66,10 +79,11 @@ function wp_deregister_script( $handle ) {
}
/**
* Equeues script
* Enqueues script.
*
* Registers the script if src provided (does NOT overwrite) and enqueues.
*
* @since r16
* @see WP_Script::add(), WP_Script::enqueue()
*/
function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false ) {