WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/03/2020 12:17:38 AM (17 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for WP_Dependencies, WP_Scripts, and WP_Styles methods.

See #48303.

File:
1 edited

Legend:

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

    r46661 r47170  
    323323     *
    324324     * @param string $handle The style's registered handle.
    325      * @param bool   $echo   Optional. Whether to echo the inline style instead of just returning it.
    326      *                       Default true.
    327      * @return string|bool False if no data exists, inline styles if `$echo` is true, true otherwise.
     325     * @param bool   $echo   Optional. Whether to echo the inline style
     326     *                       instead of just returning it. Default true.
     327     * @return string|bool False if no data exists, inline styles if `$echo` is true,
     328     *                     true otherwise.
    328329     */
    329330    public function print_inline_style( $handle, $echo = true ) {
     
    357358     * @see WP_Dependencies::all_deps()
    358359     *
    359      * @param string|string[] $handles   Item handle and argument (string) or item handles and arguments (array of strings).
    360      * @param bool            $recursion Internal flag that function is calling itself.
    361      * @param int|false       $group     Group level: (int) level, (false) no groups.
     360     * @param string|string[] $handles   Item handle (string) or item handles (array of strings).
     361     * @param bool            $recursion Optional. Internal flag that function is calling itself.
     362     *                                   Default false.
     363     * @param int|false       $group     Optional. Group level: level (int), no groups (false).
     364     *                                   Default false.
    362365     * @return bool True on success, false on failure.
    363366     */
     
    382385     * @since 2.6.0
    383386     *
    384      * @param string $src The source of the enqueued style.
    385      * @param string $ver The version of the enqueued style.
     387     * @param string $src    The source of the enqueued style.
     388     * @param string $ver    The version of the enqueued style.
    386389     * @param string $handle The style's registered handle.
    387390     * @return string Style's fully-qualified URL.
Note: See TracChangeset for help on using the changeset viewer.