Changeset 56214 for trunk/src/wp-includes/media.php
- Timestamp:
- 07/11/2023 01:56:55 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r56191 r56214 5726 5726 /* 5727 5727 * The first elements in 'the_content' or 'the_post_thumbnail' should not be lazy-loaded, 5728 * as they are likely above the fold. 5729 */ 5730 if ( 'the_content' === $context || 'the_post_thumbnail' === $context ) { 5728 * as they are likely above the fold. Shortcodes are processed after content images, so if 5729 * thresholds haven't already been met, apply the same logic to those as well. 5730 */ 5731 if ( 'the_content' === $context || 'the_post_thumbnail' === $context || 'do_shortcode' === $context ) { 5731 5732 // Only elements within the main query loop have special handling. 5732 5733 if ( is_admin() || ! in_the_loop() || ! is_main_query() ) {
Note: See TracChangeset
for help on using the changeset viewer.