mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 17:39:42 +01:00
修复文章密码提示出现时被markdown过滤掉的bug
This commit is contained in:
parent
76a80a5a8f
commit
7e919b7ae8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user