Skip to content

Commit

Permalink
Update functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
happykl-cn committed Nov 28, 2023
1 parent cfb3851 commit 0505882
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@



/* 解析<pre>标签 小恐龙“太好拉”注: 此处特别感谢阿云的技术支持*/
function pre_tag_fix($content){
$pattern = '/\[pre\](.*?)\[\/pre\]/s';
$replacement = '<pre>$1</pre>';
$content = preg_replace($pattern, $replacement, $content);
return $content;
}
add_filter('the_content', 'pre_tag_fix', 100);

//去除感谢使用wordpress创作
if (pk_is_checked('hide_footer_wp_t')) {
Expand Down

0 comments on commit 0505882

Please sign in to comment.