diff --git src/wp-includes/media.php src/wp-includes/media.php
index bfd71cdcb3..2da31eaf1e 100644
|
|
function wp_lazy_loading_enabled( $tag_name, $context ) { |
1736 | 1736 | // By default add to all 'img' and 'iframe' tags. |
1737 | 1737 | // See https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-loading |
1738 | 1738 | // See https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-loading |
1739 | | $default = ( 'img' === $tag_name || 'iframe' === $tag_name ); |
| 1739 | $default = false !== $context && ( 'img' === $tag_name || 'iframe' === $tag_name ); |
1740 | 1740 | |
1741 | 1741 | /** |
1742 | 1742 | * Filters whether to add the `loading` attribute to the specified tag in the specified context. |