Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#17030 closed defect (bug) (duplicate)

Introduce wp_make_excerpt

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

Description

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 13 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nacin
13 years ago

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

#2 @sivel
13 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.