diff --git src/wp-includes/media.php src/wp-includes/media.php
index 804a34f6ac..89a7abac02 100644
|
|
function wp_img_tag_add_loading_attr( $image, $context ) { |
1964 | 1964 | function wp_img_tag_add_decoding_attr( $image, $context ) { |
1965 | 1965 | // Only apply the decoding attribute to images that have a src attribute that |
1966 | 1966 | // starts with a double quote, ensuring escaped JSON is also excluded. |
1967 | | if ( false === strpos( $image, ' src="' ) ) { |
| 1967 | if ( ! str_contains( $image, ' src="' ) ) { |
1968 | 1968 | return $image; |
1969 | 1969 | } |
1970 | 1970 | |