diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 3a22f77881..8f4396711c 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -4779,19 +4779,7 @@ function wp_img_tag_add_loading_attr( $image, $context ) { return $image; } - /** - * Filters the `loading` attribute value to add to an image. Default `lazy`. - * - * Returning `false` or an empty string will not add the attribute. - * Returning `true` will add the default value. - * - * @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. - * @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. - */ + /** This filter is documented in wp-admin/includes/media.php */ $value = apply_filters( 'wp_img_tag_add_loading_attr', $value, $image, $context ); if ( $value ) { diff --git a/wp-includes/media.php b/wp-includes/media.php index 6a160ca016..7b323aafac 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -1963,15 +1963,14 @@ function wp_img_tag_add_loading_optimization_attrs( $image, $context ) { if ( empty( $loading_val ) && $loading_attrs_enabled ) { /** * Filters the `loading` attribute value to add to an image. Default `lazy`. - * This filter is added in for backward compatibility. * * Returning `false` or an empty string will not add the attribute. * Returning `true` will add the default value. - * `true` and `false` usage supported for backward compatibility. * * @since 5.5.0 * - * @param string|bool $loading Current value for `loading` attribute for the image. + * @param string|bool $value The `loading` attribute value. Returning a falsey value will result in + * the attribute being omitted for the image. * @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. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 0efbc4d14a..2287c16eec 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta2-56111'; +$wp_version = '6.3-beta2-56112'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.