From 7e919b7ae83f572f170837b308f3194f1e49c6c7 Mon Sep 17 00:00:00 2001 From: joyqi Date: Mon, 28 Oct 2013 15:55:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E7=AB=A0=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E6=8F=90=E7=A4=BA=E5=87=BA=E7=8E=B0=E6=97=B6=E8=A2=AB?= =?UTF-8?q?markdown=E8=BF=87=E6=BB=A4=E6=8E=89=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Abstract/Contents.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/var/Widget/Abstract/Contents.php b/var/Widget/Abstract/Contents.php index 524690a5..397c8f1f 100644 --- a/var/Widget/Abstract/Contents.php +++ b/var/Widget/Abstract/Contents.php @@ -83,6 +83,10 @@ class Widget_Abstract_Contents extends Widget_Abstract */ protected function ___excerpt() { + if ($this->hidden) { + return $this->text; + } + $content = $this->pluginHandle(__CLASS__)->trigger($plugged)->excerpt($this->text, $this); if (!$plugged) { if ($this->isMarkdown) { @@ -107,6 +111,10 @@ class Widget_Abstract_Contents extends Widget_Abstract */ protected function ___content() { + if ($this->hidden) { + return $this->text; + } + $content = $this->pluginHandle(__CLASS__)->trigger($plugged)->content($this->text, $this); if (!$plugged) {