From 409c587a312d1eea6c65876dae47963de8766a25 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Tue, 5 Sep 2023 12:10:18 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit 5689a8e [ci skip] [skip ci] --- class/class-mainwp-child-actions.php | 1 - class/class-mainwp-child-install.php | 2 +- class/class-mainwp-child-misc.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/class/class-mainwp-child-actions.php b/class/class-mainwp-child-actions.php index a19a7373..87517fc6 100644 --- a/class/class-mainwp-child-actions.php +++ b/class/class-mainwp-child-actions.php @@ -666,7 +666,6 @@ public function callback_upgrader_pre_install() { } } } - } /** diff --git a/class/class-mainwp-child-install.php b/class/class-mainwp-child-install.php index 05e7ddff..106f25a3 100644 --- a/class/class-mainwp-child-install.php +++ b/class/class-mainwp-child-install.php @@ -113,7 +113,7 @@ public function plugin_action() { $this->delete_plugins( $plugins ); } elseif ( 'changelog_info' === $action ) { include_once ABSPATH . '/wp-admin/includes/plugin-install.php'; - $_slug = wp_unslash( $_POST['slug'] ); + $_slug = wp_unslash( $_POST['slug'] ); $api = plugins_api( 'plugin_information', array( diff --git a/class/class-mainwp-child-misc.php b/class/class-mainwp-child-misc.php index a5756c7f..9e116042 100644 --- a/class/class-mainwp-child-misc.php +++ b/class/class-mainwp-child-misc.php @@ -780,7 +780,7 @@ private function snippet_delete_snippet( $slug, $type, $snippets ) { $return['status'] = 'SUCCESS'; } } else { - $return['status'] = 'SUCCESS'; + $return['status'] = 'SUCCESS'; $return['notfound'] = 1; } }