Escape output
This commit is contained in:
parent
d3fec6bc87
commit
c2e8c3602e
1 changed files with 2 additions and 2 deletions
|
@ -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();.
|
||||
|
|
Reference in a new issue