Changeset 48855
- Timestamp:
- 08/24/2020 10:14:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r48853 r48855 1685 1685 1686 1686 /** 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. 1688 1688 * 1689 1689 * @since 5.5.0 1690 1690 * 1691 1691 * @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. 1693 1694 * @return bool Whether to add the attribute. 1694 1695 */ … … 1705 1706 * @param bool $default Default value. 1706 1707 * @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. 1708 1710 */ 1709 1711 return (bool) apply_filters( 'wp_lazy_loading_enabled', $default, $tag_name, $context ); … … 1818 1820 * 1819 1821 * @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'. 1821 1823 * @param string $image The HTML `img` tag to be filtered. 1822 1824 * @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.