Make WordPress Core

Changeset 48855


Ignore:
Timestamp:
08/24/2020 10:14:17 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for wp_lazy_loading_enabled() per the documentation standards.

See #50768.

File:
1 edited

Legend:

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

    r48853 r48855  
    16851685
    16861686/**
    1687  * Determine whether to add the `loading` attribute to the specified tag in the specified context.
     1687 * Determines whether to add the `loading` attribute to the specified tag in the specified context.
    16881688 *
    16891689 * @since 5.5.0
    16901690 *
    16911691 * @param string $tag_name The tag name.
    1692  * @param string $context  Additional context, like the current filter name or the function name from where this was called.
     1692 * @param string $context  Additional context, like the current filter name
     1693 *                         or the function name from where this was called.
    16931694 * @return bool Whether to add the attribute.
    16941695 */
     
    17051706     * @param bool   $default  Default value.
    17061707     * @param string $tag_name The tag name.
    1707      * @param string $context  Additional context, like the current filter name or the function name from where this was called.
     1708     * @param string $context  Additional context, like the current filter name
     1709     *                         or the function name from where this was called.
    17081710     */
    17091711    return (bool) apply_filters( 'wp_lazy_loading_enabled', $default, $tag_name, $context );
     
    18181820     *
    18191821     * @param string|bool $value   The `loading` attribute value. Returning a falsey value will result in
    1820      *                             the attribute being omitted for the image. Default is `lazy`.
     1822     *                             the attribute being omitted for the image. Default 'lazy'.
    18211823     * @param string      $image   The HTML `img` tag to be filtered.
    18221824     * @param string      $context Additional context about how the function was called or where the img tag is.
Note: See TracChangeset for help on using the changeset viewer.