All pastes #2459294 Raw Edit

Patch for Advanced Excerpt 4.1.1

public unlisted diff v1 · immutable
#2459294 ·published 2013-09-27 23:19 UTC
rendered paste body
--- advanced-excerpt.php.orig   2013-09-28 01:06:47.154312385 +0200+++ advanced-excerpt.php        2013-09-28 01:07:54.696326649 +0200@@ -148,6 +148,10 @@       }-      // Create the excerpt+      // Create the excerpt and return the original text if it's identical to the excerpt.+      $text_orig = trim(force_balance_tags($text));       $text = $this->text_excerpt($text, $length, $use_words, $finish_word, $finish_sentence);+      if ($text_orig == $text) {+        return $text_orig;+      }       // Add the ellipsis or link