Skip to content

Commit

Permalink
Merge pull request #392 from mainwp/master-cf-autofix
Browse files Browse the repository at this point in the history
Apply fixes from CodeFactor
  • Loading branch information
thanghv authored Sep 5, 2023
2 parents 5689a8e + 409c587 commit 0340291
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 0340291

Please sign in to comment.