Make WordPress Core

Ticket #37770: 37770-wp_enqueue_script.diff

File 37770-wp_enqueue_script.diff, 1.0 KB (added by Frank Klein, 8 years ago)

Corrects type of $src parameter of wp_enqueue_script().

  • src/wp-includes/functions.wp-scripts.php

    diff --git src/wp-includes/functions.wp-scripts.php src/wp-includes/functions.wp-scripts.php
    index 315d69f..048ac6f 100644
    function wp_deregister_script( $handle ) { 
    251251 * @since 2.1.0
    252252 *
    253253 * @param string           $handle    Name of the script. Should be unique.
    254  * @param string           $src       Full URL of the script, or path of the script relative to the WordPress root directory.
     254 * @param string|bool      $src       Full URL of the script, or path of the script relative to the WordPress root directory.
     255 *                                    Default 'false'.
    255256 * @param array            $deps      Optional. An array of registered script handles this script depends on. Default empty array.
    256257 * @param string|bool|null $ver       Optional. String specifying script version number, if it has one, which is added to the URL
    257258 *                                    as a query string for cache busting purposes. If version is set to false, a version