Make WordPress Core

Changeset 36706


Ignore:
Timestamp:
02/25/2016 05:10:46 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Standardize DocBlocks for two new WP_Scripts methods, add_inline_script() and print_inline_script(), introduced in [36633].

See #14853. See #32246.

File:
1 edited

Legend:

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

    r36633 r36706  
    240240
    241241    /**
    242      * Add extra code to a registered script.
     242     * Adds extra code to a registered script.
    243243     *
    244244     * @since 4.5.0
     245     * @access public
    245246     *
    246247     * @param string $handle   Name of the script to add the inline script to. Must be lowercase.
     
    248249     * @param string $position Optional. Whether to add the inline script before the handle
    249250     *                         or after. Default 'after'.
    250      *
    251251     * @return bool True on success, false on failure.
    252252     */
     
    267267
    268268    /**
    269      * Print inline scripts registered for a specific handle.
     269     * Prints inline scripts registered for a specific handle.
    270270     *
    271271     * @since 4.5.0
     272     * @access public
    272273     *
    273274     * @param string $handle   Name of the script to add the inline script to. Must be lowercase.
Note: See TracChangeset for help on using the changeset viewer.