[wp-trac] [WordPress Trac] #52820: Possible logic error in wp_trim_excerpt()

WordPress Trac noreply at wordpress.org
Mon Mar 15 16:26:58 UTC 2021


#52820: Possible logic error in wp_trim_excerpt()
--------------------------+-----------------------------
 Reporter:  theMikeD      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 https://core.trac.wordpress.org/browser/tags/5.7/src/wp-
 includes/formatting.php#L3845

 Reading this code, it looks like the `wp_trim_excerpt` filter's
 `$raw_excerpt` parameter will be empty if `$text` as supplied to the
 function is empty. This should be the value of `$text` at L3824 should it
 not? Or do I mis-understand?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52820>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list