Skip to content

Commit

Permalink
タグページを本文の内部・外部リンクの置換フック追加
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Jul 4, 2019
1 parent d05c1cf commit 9356b72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/links.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function is_anchor_link_tag_blogcard($anchor_link_tag){
add_filter('widget_classic_text', 'replace_anchor_links', 12);
add_filter('widget_text_mobile_text', 'replace_anchor_links', 12);
add_filter('the_category_content', 'replace_anchor_links', 12);
add_filter('the_tag_content', 'replace_anchor_links', 12);
if ( !function_exists( 'replace_anchor_links' ) ):
function replace_anchor_links($the_content) {
$res = preg_match_all('{<a [^>]+?>.+?</a>}is', $the_content, $m);
Expand Down

0 comments on commit 9356b72

Please sign in to comment.