Escape output

This commit is contained in:
Ben Goldsworthy 2021-02-21 12:21:42 +00:00
parent d3fec6bc87
commit c2e8c3602e

View file

@ -57,11 +57,11 @@ class MCI_Footnotes_Hooks {
public static function uninstall_plugin() {
// WordPress User has to be logged in.
if ( ! is_user_logged_in() ) {
wp_die( __( 'You must be logged in to run this script.', 'footnotes' ) );
wp_die( wp_kses_post( __( 'You must be logged in to run this script.', 'footnotes' ) ) );
}
// WordPress User needs the permission to (un)install plugins.
if ( ! current_user_can( 'install_plugins' ) ) {
wp_die( __( 'You do not have permission to run this script.', 'footnotes' ) );
wp_die( wp_kses_post( __( 'You do not have permission to run this script.', 'footnotes' ) ) );
}
// Deletes all settings and restore the default values.
// MCI_Footnotes_Settings::instance()->Clear_all();.