Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#37288 closed defect (bug) (fixed)

Embeds: Don't print HTML markup if a post has no featured image

Reported by: ocean90's profile ocean90 Owned by: swissspidy's profile swissspidy
Milestone: 4.6 Priority: normal
Severity: normal Version: 4.5
Component: Embeds Keywords: has-patch
Focuses: Cc:


Introduced in [36693].

In embed-content.php $thumbnail_id can be 0. If it's 0 no markup should be printed.

Attachments (1)

37288.2.diff (3.9 KB) - added by ocean90 8 years ago.

Download all attachments as: .zip

Change History (5)

#1 @swissspidy
8 years ago

  • Owner set to swissspidy
  • Status changed from new to assigned

8 years ago

#2 @ocean90
8 years ago

  • Keywords has-patch added; needs-patch removed

37288.2.diff reverts to the behaviour before [36693].

#3 @ocean90
8 years ago

  • Milestone changed from Future Release to 4.6

#4 @ocean90
8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 37988:

Embeds: Don't print the HTML for a featured image if a post has no featured image.

See [36693].
Fixes #37288.

Note: See TracTickets for help on using tickets.