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

Commit fb4248e

Browse files
CarlosLongarelamkaz
authored andcommitted
wp_kses_allowed_html allow data-lang attribute
1 parent 24f6c75 commit fb4248e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.php

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

196196
if ( is_array( $tags['code'] ) ) {
197-
$tags['code']['lang'] = array();
197+
$tags['code']['data-lang'] = array();
198198
} else {
199199
$tags['code'] = array(
200-
'lang' => array(),
200+
'data-lang' => array(),
201201
);
202202
}
203203
return $tags;

0 commit comments

Comments
 (0)