WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/28/2011 06:24:00 PM (10 years ago)
Author:
azaozz
Message:

Introduce WP_Dependencies::get_data() method, change scripts and styles priority to follow the "natural" order in HTML, i.e. the last one wins, props scribu, see #11520

File:
1 edited

Legend:

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

    r18464 r18480  
    6767 * }
    6868 * The $name is passed directly so it should be qualified JS variable /[a-zA-Z0-9_]+/
    69  * The $data array is JSON encoded. If called more than once for the same $handle, with the same $name,
     69 * The $data array is JSON encoded. If called more than once for the same $handle with the same $name,
    7070 * the object would contain all values. In that case if two or more keys are the same,
    71  * the first value is kept and subsequent values are ignored.
     71 * the last value overwrites the previous.
    7272 *
    7373 * @since 3.3
Note: See TracChangeset for help on using the changeset viewer.