Opened 15 years ago
Closed 14 years ago
#17492 closed defect (bug) (fixed)
$text param in wp_trim_excerpt should be optional
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.3 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
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)
Note: See
TracTickets for help on using
tickets.
Patch it up, sounds fine. Don't forget the phpdoc.