[wp-trac] [WordPress Trac] #49751: Old Featured Images (Thumbnails) Broken in 5.4

WordPress Trac noreply at wordpress.org
Wed Apr 1 14:50:51 UTC 2020


#49751: Old Featured Images (Thumbnails) Broken in 5.4
-----------------------------+------------------------------
 Reporter:  ispreview        |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Post Thumbnails  |     Version:  5.4
 Severity:  major            |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by ispreview):

 Replying to [comment:1 joemcgill]:
 > Hi @ispreview, thank you for the  report. Can you provide more info
 about what you mean by "OLD Featured Image Code"? Could you provide some
 example code about how those featured images were being generated?

 ----

 Sure. I meant the HTML code above, but that HTML is generally output when
 you make the fairly common thumbnail / featured image requests in the
 template, such as:

 {{{#!php
 <?php the_post_thumbnail('thumbnail'); ?>
 }}}


 and

 {{{#!php
 <?php the_post_thumbnail('single-post-thumbnail'); ?>
 }}}


 As I say, any featured images added to a post from a recent NextGen
 Gallery install will show the HTML output from those just fine, but since
 the thumbnail code change in WP5.4 all images originally added in this way
 under older gallery plugins like NextGen Gallery pre-v2 or NextCellent
 Gallery, don't output any HTML code at all and so no images are displayed.

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


More information about the wp-trac mailing list