[wp-trac] [WordPress Trac] #18398: wp_trim_excerpt wrong comperative

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 13 22:41:30 UTC 2011


#18398: wp_trim_excerpt wrong comperative
--------------------------+-----------------------------
 Reporter:  cedwetzel     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  3.2.1
 Severity:  major         |   Keywords:  needs-patch
--------------------------+-----------------------------
 In wp-includes/formatting.php on line 1857 in method wp_trim_excerpt() the
 text input $text is compared to an empty string. This makes the function
 not working. Just replace

 {{{
 if ( '' == $text ) {
 }}}

 with

 {{{
 if ( '' != $text ) {
 }}}

 and it's going to work again.

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


More information about the wp-trac mailing list