Changeset 55825 for trunk/src/wp-includes/media.php
- Timestamp:
- 05/18/2023 07:53:37 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r55821 r55825 5508 5508 5509 5509 /* 5510 * Skip programmatically created images within post content as they need to be handled together with the other 5511 * images within the post content. 5512 * Without this clause, they would already be counted below which skews the number and can result in the first 5513 * post content image being lazy-loaded only because there are images elsewhere in the post content. 5514 */ 5515 if ( ( 'the_post_thumbnail' === $context || 'wp_get_attachment_image' === $context ) && doing_filter( 'the_content' ) ) { 5516 return false; 5517 } 5518 5519 /* 5510 5520 * The first elements in 'the_content' or 'the_post_thumbnail' should not be lazy-loaded, 5511 5521 * as they are likely above the fold.
Note: See TracChangeset
for help on using the changeset viewer.