Skip to content

Commit

Permalink
[ alert ] 属性補完
Browse files Browse the repository at this point in the history
  • Loading branch information
kurudrive committed Nov 11, 2024
1 parent f658059 commit 75f3ae4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/promotion-alert/package/class-veu-promotion-alert.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ public static function get_alert_content() {
$alert = str_replace( '<div class="veu_promotion-alert">', '<div class="veu_promotion-alert" data-nosnippet>', $alert );
}

// 投稿本文に含まれるHTML要素の属性を補完( veu_promotion_alert_content フィルター ではタイミングの問題で動作しない )
$alert = wp_filter_content_tags( $alert );
// 許可されたHTMLタグで再度サニタイズ
return apply_filters( 'veu_promotion_alert_content', $alert );
}
Expand Down

0 comments on commit 75f3ae4

Please sign in to comment.