修复文章密码提示出现时被markdown过滤掉的bug

This commit is contained in:
joyqi 2013-10-28 15:55:15 +08:00
parent 76a80a5a8f
commit 7e919b7ae8

View File

@ -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) {