Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#17030 closed defect (bug) (duplicate)

Introduce wp_make_excerpt

Reported by: filosofo Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Formatting Keywords:
Focuses: Cc:


Currently, there is no sensible way to generate an excerpt, given a text string of text.

If you pass a non-empty string of text to wp_trim_excerpt, it just returns the text to you.

Patch introduces wp_make_excerpt, which given a string and optional length and ellipses parameters, returns that string, excerpted.

Attachments (1)

wp_make_excerpt.diff (2.0 KB) - added by filosofo 5 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nacin
5 years ago

  • Milestone 3.2 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#2 @sivel
5 years ago

  • Keywords has-patch removed

See #12858 also. #16372 and #12858 look similar if not the same, might need to close one of those also.

Note: See TracTickets for help on using tickets.