Make WordPress Core

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


Ignore:
Timestamp:
10/28/2022 04:16:45 PM (2 years ago)
Author:
RavanH
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56927, comment 1

    initial v1  
    11I do not see a way to prevent this from happening to a Post Featured Image block used in a theme template, outside of the Loop like in the Single and Page templates in T22 and T23.
    22
    3 Maybe the `core/post-featured-image` block needs a "loading" attribute with matching "Loading" options "Default","Disabled","Lazy" and "Eager"? This value can then be passed to `get_the_post_thumbnail()` overriding the current loading attribute.
     3Maybe the `core/post-featured-image` block needs a "loading" attribute with matching "Loading" options "Default","Disabled","Lazy" and "Eager"? This value can then be passed to `get_the_post_thumbnail()` overriding the default loading attribute.