Skip to content

Commit

Permalink
Security fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lloc committed Sep 23, 2024
1 parent 6613f79 commit 603ec7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/MslsCustomColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function td( $column_name, $item_id ): void {
printf(
'<span class="msls-icon-wrapper %1$s">%2$s</span>',
esc_attr( $this->options->get_icon_type() ),
$icon->get_a()
wp_kses_post( $icon->get_a() )
);

restore_current_blog();
Expand Down
2 changes: 1 addition & 1 deletion includes/MslsPostTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function the_input( ?\WP_Term $tag, string $title_format, string $item_fo
}
}

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

restore_current_blog();
}
Expand Down
2 changes: 1 addition & 1 deletion includes/MslsPostTagClassic.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function print_option( MslsBlog $blog, string $type, MslsOptionsTax $myda
}
}

printf( wp_kses_post( $item_format ), esc_attr( $language ), $icon, $options );
printf( wp_kses_post( $item_format ), esc_attr( $language ), wp_kses_post( $icon ), wp_kses_post( $options ) );

restore_current_blog();
}
Expand Down

0 comments on commit 603ec7d

Please sign in to comment.