Skip to content

Commit 6613f79

Browse files
committed
Security fixes
1 parent 45bf407 commit 6613f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/MslsPostTag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function the_input( ?\WP_Term $tag, string $title_format, string $item_fo
160160

161161
$this->maybe_set_linked_term( $mydata );
162162

163-
printf( $title_format, esc_html( $this->get_select_title() ), esc_attr( $type ) );
163+
printf( wp_kses_post( $title_format ), esc_html( $this->get_select_title() ), esc_attr( $type ) );
164164

165165
foreach ( $blogs as $blog ) {
166166
switch_to_blog( $blog->userblog_id );
@@ -179,7 +179,7 @@ public function the_input( ?\WP_Term $tag, string $title_format, string $item_fo
179179
}
180180
}
181181

182-
printf( $item_format, esc_attr( $blog->userblog_id ), $icon, esc_attr( $language ), esc_attr( $value ), esc_attr( $title ) );
182+
printf( wp_kses_post( $item_format ), esc_attr( $blog->userblog_id ), $icon, esc_attr( $language ), esc_attr( $value ), esc_attr( $title ) );
183183

184184
restore_current_blog();
185185
}

0 commit comments

Comments
 (0)