Changeset 56112
- Timestamp:
- 06/29/2023 05:32:35 PM (15 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r56110 r56112 4780 4780 } 4781 4781 4782 /** 4783 * Filters the `loading` attribute value to add to an image. Default `lazy`. 4784 * 4785 * Returning `false` or an empty string will not add the attribute. 4786 * Returning `true` will add the default value. 4787 * 4788 * @since 5.5.0 4789 * 4790 * @param string|bool $value The `loading` attribute value. Returning a falsey value will result in 4791 * the attribute being omitted for the image. 4792 * @param string $image The HTML `img` tag to be filtered. 4793 * @param string $context Additional context about how the function was called or where the img tag is. 4794 */ 4782 /** This filter is documented in wp-admin/includes/media.php */ 4795 4783 $value = apply_filters( 'wp_img_tag_add_loading_attr', $value, $image, $context ); 4796 4784 -
trunk/src/wp-includes/media.php
r56037 r56112 1964 1964 /** 1965 1965 * Filters the `loading` attribute value to add to an image. Default `lazy`. 1966 * This filter is added in for backward compatibility.1967 1966 * 1968 1967 * Returning `false` or an empty string will not add the attribute. 1969 1968 * Returning `true` will add the default value. 1970 * `true` and `false` usage supported for backward compatibility.1971 1969 * 1972 1970 * @since 5.5.0 1973 1971 * 1974 * @param string|bool $loading Current value for `loading` attribute for the image. 1972 * @param string|bool $value The `loading` attribute value. Returning a falsey value will result in 1973 * the attribute being omitted for the image. 1975 1974 * @param string $image The HTML `img` tag to be filtered. 1976 1975 * @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.