Make WordPress Core


Ignore:
Timestamp:
12/28/2009 12:48:20 AM (15 years ago)
Author:
azaozz
Message:

WP_Dependencies: pass NULL to disable script and style version query strings, props scribu amattie, fixes #11315

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.wp-scripts.php

    r10572 r12558  
    3939 *
    4040 * @since r16
    41  * @see WP_Dependencies::add() For parameter information.
     41 * @param string $handle Script name
     42 * @param string $src Script url
     43 * @param array $deps (optional) Array of script names on which this script depends
     44 * @param string|bool $ver (optional) Script version (used for cache busting), set to NULL to disable
     45 * @param bool (optional) Wether to enqueue the script before </head> or before </body>
     46 * @return null
    4247 */
    4348function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) {
     
    5762 *
    5863 * @since r16
    59  * @see WP_Script::localize()
     64 * @see WP_Scripts::localize()
    6065 */
    6166function wp_localize_script( $handle, $object_name, $l10n ) {
     
    8792 *
    8893 * @since r16
    89  * @see WP_Script::add(), WP_Script::enqueue()
    90 */
     94 * @see wp_register_script() For parameter information.
     95 */
    9196function wp_enqueue_script( $handle, $src = false, $deps = array(), $ver = false, $in_footer = false ) {
    9297    global $wp_scripts;
Note: See TracChangeset for help on using the changeset viewer.