wp/wp-content/plugins/portfolio/bws_menu/deactivation-form.php
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
--- a/wp/wp-content/plugins/portfolio/bws_menu/deactivation-form.php	Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-content/plugins/portfolio/bws_menu/deactivation-form.php	Fri Sep 05 18:40:08 2025 +0200
@@ -5,17 +5,18 @@
  * @package BestWebSoft
  * @since 2.1.3
  */
+
 if ( ! defined( 'ABSPATH' ) ) {
 	exit;
 }
 
-/**
- * Displays a confirmation and feedback dialog box when the user clicks on the "Deactivate" link on the plugins
- * page.
- *
- * @since  2.1.3
- */
 if ( ! function_exists( 'bws_add_deactivation_feedback_dialog_box' ) ) {
+	/**
+	 * Displays a confirmation and feedback dialog box when the user clicks on the "Deactivate" link on the plugins
+	 * page.
+	 *
+	 * @since  2.1.3
+	 */
 	function bws_add_deactivation_feedback_dialog_box() {
 		global $bstwbsftwppdtplgns_active_plugins;
 		if ( empty( $bstwbsftwppdtplgns_active_plugins ) ) {
@@ -345,18 +346,18 @@
 	}
 }
 
-/**
- * Called after the user has submitted his reason for deactivating the plugin.
- *
- * @since  2.1.3
- */
 if ( ! function_exists( 'bws_submit_uninstall_reason_action' ) ) {
+	/**
+	 * Called after the user has submitted his reason for deactivating the plugin.
+	 *
+	 * @since  2.1.3
+	 */
 	function bws_submit_uninstall_reason_action() {
 		global $bstwbsftwppdtplgns_options, $wp_version, $bstwbsftwppdtplgns_active_plugins, $current_user;
 
 		if ( isset( $_REQUEST['bws_ajax_nonce'] ) ) {
 
-			wp_verify_nonce( sanitize_text_field( wp_unslash( $_REQUEST['bws_ajax_nonce'] ) ), 'bws_ajax_nonce' );
+			check_ajax_referer( 'bws_ajax_nonce', sanitize_text_field( wp_unslash( $_REQUEST['bws_ajax_nonce'] ) ) );
 
 			$reason_id = isset( $_REQUEST['reason_id'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['reason_id'] ) ) : '';
 			$basename  = isset( $_REQUEST['plugin'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['plugin'] ) ) : '';