[wp-trac] [WordPress Trac] #17492: $text param in wp_trim_excerpt should be optional

WordPress Trac wp-trac at lists.automattic.com
Wed May 18 16:29:26 UTC 2011


#17492: $text param in wp_trim_excerpt should be optional
--------------------------+-----------------------------
 Reporter:  batmoo        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 According to the
 [http://codex.wordpress.org/Function_Reference/wp_trim_excerpt 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17492>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list