WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 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:

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

Download all attachments as: .zip

Change History (3)

@filosofo4 years ago

comment:1 @nacin4 years ago

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

comment:2 @sivel4 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.