adding patchs files according to form in menu
This commit is contained in:
@@ -17,7 +17,6 @@ if (!defined('ABSPATH')) {
|
||||
*/
|
||||
function plugin_content() {
|
||||
$patches = Fbpatch::get_patches();
|
||||
error_log("in plugin_content, patches: ".json_encode($patches));
|
||||
$nonce = Fbpatch::NONCE;
|
||||
$admin_post_patches = Fbpatch::ADMIN_POST_PATCH_CHOICE;
|
||||
ob_start();
|
||||
@@ -51,7 +50,6 @@ function patches_choice() {
|
||||
"hide_show":"on"
|
||||
}
|
||||
*/
|
||||
error_log("-> _POST: " . json_encode($_POST));
|
||||
$pathes_on = array();
|
||||
foreach($_POST as $key => $value) {
|
||||
if ($value !== 'on') {
|
||||
@@ -59,7 +57,6 @@ function patches_choice() {
|
||||
}
|
||||
$pathes_on[] = $key;
|
||||
}
|
||||
error_log("-> pathes_update: " . json_encode($pathes_on));
|
||||
Fbpatch::set_patches($pathes_on);
|
||||
|
||||
\FBPATCH\redirect_menu_referer($_POST);
|
||||
|
||||
Reference in New Issue
Block a user