mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
修正header的plugin会冲掉头部的bug
This commit is contained in:
parent
17fb8ffd64
commit
6825bb69d9
@ -1564,6 +1564,8 @@ class Widget_Archive extends Widget_Abstract_Contents
|
||||
$allows = array_merge($allows, $rules);
|
||||
}
|
||||
|
||||
$allows = $this->pluginHandle()->headerOptions($allows, $this);
|
||||
|
||||
$header = '';
|
||||
if (!empty($allows['description'])) {
|
||||
$header .= '<meta name="description" content="' . $allows['description'] . '" />' . "\n";
|
||||
@ -1687,7 +1689,7 @@ var TypechoComment = {
|
||||
}
|
||||
|
||||
/** 插件支持 */
|
||||
$header = $this->pluginHandle()->header($header, $this);
|
||||
$this->pluginHandle()->header($header, $this);
|
||||
|
||||
/** 输出header */
|
||||
echo $header;
|
||||
|
Loading…
x
Reference in New Issue
Block a user