Skip to content

Commit 603ec7d

Browse files
committed
Security fixes
1 parent 6613f79 commit 603ec7d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

includes/MslsCustomColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function td( $column_name, $item_id ): void {
9494
printf(
9595
'<span class="msls-icon-wrapper %1$s">%2$s</span>',
9696
esc_attr( $this->options->get_icon_type() ),
97-
$icon->get_a()
97+
wp_kses_post( $icon->get_a() )
9898
);
9999

100100
restore_current_blog();

includes/MslsPostTag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function the_input( ?\WP_Term $tag, string $title_format, string $item_fo
179179
}
180180
}
181181

182-
printf( wp_kses_post( $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 ), wp_kses_post( $icon ), esc_attr( $language ), esc_attr( $value ), esc_attr( $title ) );
183183

184184
restore_current_blog();
185185
}

includes/MslsPostTagClassic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function print_option( MslsBlog $blog, string $type, MslsOptionsTax $myda
126126
}
127127
}
128128

129-
printf( wp_kses_post( $item_format ), esc_attr( $language ), $icon, $options );
129+
printf( wp_kses_post( $item_format ), esc_attr( $language ), wp_kses_post( $icon ), wp_kses_post( $options ) );
130130

131131
restore_current_blog();
132132
}

0 commit comments

Comments
 (0)