Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#37592 closed defect (bug) (wontfix)

the_excerpt function is including post image

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

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 10 years ago.
single post on archive

Download all attachments as: .zip

Change History (3)

@rinkuyadav999
10 years ago

single post on archive

#1 @omerblink
10 years ago

What older version you created the post in?

#2 @Clorith
10 years ago

  • Component General → Formatting
  • Focuses template added; ui removed
  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → 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.