[wp-trac] [WordPress Trac] #51268: Issue with excerpts

WordPress Trac noreply at wordpress.org
Thu Sep 11 18:58:51 UTC 2025


#51268: Issue with excerpts
-------------------------------+----------------------
 Reporter:  HollyKNY           |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:  5.5.1
 Severity:  normal             |  Resolution:  wontfix
 Keywords:                     |     Focuses:
-------------------------------+----------------------
Changes (by SirLouen):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 There are a million ways to avoid excerpts with a little code. The space
 trick was not intended, and the fact that it happened to work was not a
 feature but somehat bug.

 I have not tested, but checking at the code, I think that something like
 `remove_filter('the_excerpt', 'wp_trim_excerpt');` (for example in your
 theme's `functions.php`) shoud make your space trick work again.

 But ideally the best thing to do is to actually manipulate the excerpts
 display to your convenience

 There are plenty of hooks to the excerpt like `get_the_excerpt` if you
 want to manipulate it conditionally, or `the_excerpt` if you want to
 simply replace it for example.

 Closing this as `wontfix` the space thing should not be happening anymore,
 with all these options available.

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


More information about the wp-trac mailing list