WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50425, comment 1


Ignore:
Timestamp:
06/18/2020 07:16:33 PM (7 weeks ago)
Author:
joemcgill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50425, comment 1

    initial v1  
    1 `get_the_post_thumbnail()` is used extensively in places where the featured image is not in the viewport, i.e., on archive pages or in places where some UI is being creating using a secondary query, so we might want to be more explicit in that case that it only loads when `is_single()` and `is_main_query()` are both true.
     1`get_the_post_thumbnail()` is used extensively in places where the featured image is not in the viewport, e.g., on archive pages or in places where some UI is being creating using a secondary query, so we might want to be more explicit in that case that it only loads when `is_single()` and `is_main_query()` are both true.