Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18398 closed defect (bug) (duplicate)

wp_trim_excerpt wrong comperative

Reported by: cedwetzel Owned by:
Priority: normal Milestone:
Component: Formatting Version: 3.2.1
Severity: major Keywords:
Cc: Focuses:

Description

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.

Attachments (1)

18398.diff​ (400 bytes ) - added by jkudish 15 years ago.

Download all attachments as: .zip

Change History (6)

#1 @cedwetzel
15 years ago

I mean line 1847, sorry for that fault....

#2 @SergeyBiryukov
15 years ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

#3 @jkudish
15 years ago

Here's a patch for it

#4 @jkudish
15 years ago

  • Cc joachim.kudish@… added

#5 @jkudish
15 years ago

never mind then :)

Note: See TracTickets for help on using tickets.