[wp-trac] [WordPress Trac] #37592: the_excerpt function is including post image

WordPress Trac noreply at wordpress.org
Sun Aug 7 10:43:16 UTC 2016


#37592: the_excerpt function is including post image
---------------------------+-----------------------
 Reporter:  rinkuyadav999  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Formatting     |     Version:  4.5.3
 Severity:  normal         |  Resolution:  wontfix
 Keywords:                 |     Focuses:  template
---------------------------+-----------------------
Changes (by Clorith):

 * status:  new => closed
 * resolution:   => wontfix
 * focuses:  ui => template
 * component:  General => Formatting
 * milestone:  Awaiting Review =>


Comment:

 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.

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


More information about the wp-trac mailing list