Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58211, comment 16


Ignore:
Timestamp:
05/24/2023 07:36:53 PM (3 years ago)
Author:
asafm7
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58211, comment 16

    initial v1  
    1 @flixos90 , looking at the commit, I think the fix doesn't take into consideration a Cover block that is set with the featured image as the background image, in a block template.
    2 
    3 Am I right?
    4 
    5 The WP_TEMPLATE_PART_AREA_HEADER won't help, as the Cover block isn't there
    6 
    7 So, the case will keep returning lazy from:         
    8 {{{
    9 if ( is_admin() || ! in_the_loop() || ! is_main_query() ) {
    10     return 'lazy';
    11 }
    12 }}}
    13 
    14 As we're not in the loop.