Skip to content

Commit

Permalink
Cast default excerpt to string
Browse files Browse the repository at this point in the history
  • Loading branch information
joppuyo committed Dec 19, 2018
1 parent f1bc8b6 commit a1263c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searchwp-finnish-base-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ function get_excerpt($post, $options)
break;
}
}
return Stringy\Stringy::create($options['fallback']($post))
return (string) Stringy\Stringy::create($options['fallback']($post))
->safeTruncate($options['length']);
}

Expand Down

0 comments on commit a1263c8

Please sign in to comment.