From c2e8c3602e593ac26718b2bdff9c1d731cc62619 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sun, 21 Feb 2021 12:21:42 +0000 Subject: [PATCH] Escape output --- class/hooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/hooks.php b/class/hooks.php index e66b9fa..1930332 100644 --- a/class/hooks.php +++ b/class/hooks.php @@ -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();.