Skip to content

Commit

Permalink
[CodeFactor] Apply fixes to commit 5689a8e
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
code-factor committed Sep 5, 2023
1 parent 5689a8e commit 409c587
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion class/class-mainwp-child-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,6 @@ public function callback_upgrader_pre_install() {
}
}
}

}

/**
Expand Down
2 changes: 1 addition & 1 deletion class/class-mainwp-child-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion class/class-mainwp-child-misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 409c587

Please sign in to comment.