Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit b8fdc29

Browse files
CarlosLongarelamkaz
authored andcommitted
wp_kses_allowed_html allow data-lang attribute
1 parent aee25bf commit b8fdc29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ function mkaz_prism_theme_css_ver() {
215215
add_filter( 'wp_kses_allowed_html', function( $tags ) {
216216

217217
if ( is_array( $tags['code'] ) ) {
218-
$tags['code']['lang'] = array();
218+
$tags['code']['data-lang'] = array();
219219
} else {
220220
$tags['code'] = array(
221-
'lang' => array(),
221+
'data-lang' => array(),
222222
);
223223
}
224224
return $tags;

0 commit comments

Comments
 (0)