Make WordPress Core


Ignore:
Timestamp:
05/10/2015 07:56:15 PM (10 years ago)
Author:
johnbillion
Message:

Add a return value to wp_register_script() and wp_register_style() which matches the return value of WP_Dependencies::add().

Props katzwebdesign, pareshradadiya, DrewAPicture.

Fixes #31126

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-dependencies.php

    r30537 r32483  
    214214     * @param string $ver    Optional. Version (used for cache busting).
    215215     * @param mixed  $args   Optional. Custom property of the item. NOT the class property $args. Examples: $media, $in_footer.
    216      * @return bool True on success, false on failure.
     216     * @return bool Whether the item has been registered. True on success, false on failure.
    217217     */
    218218    public function add( $handle, $src, $deps = array(), $ver = false, $args = null ) {
Note: See TracChangeset for help on using the changeset viewer.