[wp-trac] [WordPress Trac] #58089: Featured images within post content cause lazy-loading logic to apply incorrectly

WordPress Trac noreply at wordpress.org
Wed May 24 19:05:13 UTC 2023


#58089: Featured images within post content cause lazy-loading logic to apply
incorrectly
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  defect (bug)                         |      Status:  closed
 Priority:  high                                 |   Milestone:  6.3
Component:  Media                                |     Version:  5.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |  performance
-------------------------------------------------+-------------------------

Comment (by asafm7):

 Thanks, @flixos90 .

 It only works if I remove && doing_filter( 'the_content' ).

 Probably because the context is a block template?

 Do you think the fix can be modified to include this case?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58089#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list