--- a/wp/wp-includes/post-thumbnail-template.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/post-thumbnail-template.php Fri Sep 05 18:40:08 2025 +0200
@@ -186,19 +186,6 @@
update_post_thumbnail_cache();
}
- // Get the 'loading' attribute value to use as default, taking precedence over the default from
- // `wp_get_attachment_image()`.
- $loading = wp_get_loading_attr_default( 'the_post_thumbnail' );
-
- // Add the default to the given attributes unless they already include a 'loading' directive.
- if ( empty( $attr ) ) {
- $attr = array( 'loading' => $loading );
- } elseif ( is_array( $attr ) && ! array_key_exists( 'loading', $attr ) ) {
- $attr['loading'] = $loading;
- } elseif ( is_string( $attr ) && ! preg_match( '/(^|&)loading=/', $attr ) ) {
- $attr .= '&loading=' . $loading;
- }
-
$html = wp_get_attachment_image( $post_thumbnail_id, $size, false, $attr );
/**