Opened 2 years ago
Closed 20 months ago
#17492 closed defect (bug) (fixed)
$text param in wp_trim_excerpt should be optional
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | batmoo |
Description
According to the Docs, the $text param is required but "if set to empty an excerpt is generated."
Calling wp_trim_excerpt(); (i.e. without the param) works, but throws a Warning.
It makes sense to default the $text param to empty and make it optional.
Attachments (2)
Change History (6)
SergeyBiryukov — 21 months ago
comment:3
SergeyBiryukov — 21 months ago
- Milestone changed from Awaiting Review to 3.3
Updated the patch to reflect the change in PHPDocs.
comment:4
markjaquith — 20 months ago
- Owner set to markjaquith
- Resolution set to fixed
- Status changed from new to closed
In [18824]:
Note: See
TracTickets for help on using
tickets.

Patch it up, sounds fine. Don't forget the phpdoc.