From 8e7e3c5b72285eae25f6223592bbb4142602a9f4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 24 Aug 2020 22:14:17 +0000 Subject: [PATCH] Docs: Improve documentation for `wp_lazy_loading_enabled()` per the documentation standards. See #50768. git-svn-id: https://develop.svn.wordpress.org/trunk@48855 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 8837bc40b8..2a9307ae65 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -1684,12 +1684,13 @@ function wp_image_add_srcset_and_sizes( $image, $image_meta, $attachment_id ) { } /** - * Determine whether to add the `loading` attribute to the specified tag in the specified context. + * Determines whether to add the `loading` attribute to the specified tag in the specified context. * * @since 5.5.0 * * @param string $tag_name The tag name. - * @param string $context Additional context, like the current filter name or the function name from where this was called. + * @param string $context Additional context, like the current filter name + * or the function name from where this was called. * @return bool Whether to add the attribute. */ function wp_lazy_loading_enabled( $tag_name, $context ) { @@ -1704,7 +1705,8 @@ function wp_lazy_loading_enabled( $tag_name, $context ) { * * @param bool $default Default value. * @param string $tag_name The tag name. - * @param string $context Additional context, like the current filter name or the function name from where this was called. + * @param string $context Additional context, like the current filter name + * or the function name from where this was called. */ return (bool) apply_filters( 'wp_lazy_loading_enabled', $default, $tag_name, $context ); } @@ -1817,7 +1819,7 @@ function wp_img_tag_add_loading_attr( $image, $context ) { * @since 5.5.0 * * @param string|bool $value The `loading` attribute value. Returning a falsey value will result in - * the attribute being omitted for the image. Default is `lazy`. + * the attribute being omitted for the image. Default 'lazy'. * @param string $image The HTML `img` tag to be filtered. * @param string $context Additional context about how the function was called or where the img tag is. */