Skip to content

Commit 695e67f

Browse files
authored
Merge pull request #4409 from Codeinwp/fix/single-content-magic-tag
[Fix] current_single_content magic tag was over-escaped
2 parents 7511408 + 0d0f688 commit 695e67f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

header-footer-grid/Core/Magic_Tags.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ private function do_magic_tag( $matches ) {
126126
return '';
127127
}
128128

129+
if ( $tag === 'current_single_content' ) {
130+
return wp_kses_post( call_user_func( [ $this, $tag ] ) );
131+
}
132+
129133
$allowed_tags = wp_kses_allowed_html();
130134
if ( $tag === 'current_post_meta' || $tag === 'meta_date' ) {
131135
$allowed_tags['span'] = [

0 commit comments

Comments
 (0)