Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#37592 closed defect (bug) (wontfix)

the_excerpt function is including post image

Reported by: rinkuyadav999's profile rinkuyadav999 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.3
Component: Formatting Keywords:
Focuses: template Cc:

Description

i think the_excerpt function should exclude all post images. and yes it is working. but it is not working on a user website (potku.net).

He have latest version of wp but the post is created with old version.

Attachments (1)

the_excerpt.png (382.4 KB) - added by rinkuyadav999 9 years ago.
single post on archive

Download all attachments as: .zip

Change History (3)

@rinkuyadav999
9 years ago

single post on archive

#1 @omerblink
9 years ago

What older version you created the post in?

#2 @Clorith
9 years ago

  • Component changed from General to Formatting
  • Focuses template added; ui removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

The the_excerpt() function will only strip out shortcodes by it self, I don't think this is a behavior we should change in core as changing this behavior will most definitely change the display of most sites out there.

This can easily be handled on a case by case basis with a filter such as get_the_excerpt.

Related #12084, which would also allow for removing tags via filters.

Note: See TracTickets for help on using tickets.