Skip to content

Commit

Permalink
v.1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
KmancusoRonik committed Nov 14, 2023
1 parent 561e694 commit 9685a21
Show file tree
Hide file tree
Showing 27 changed files with 2,142 additions and 1,393 deletions.
241 changes: 0 additions & 241 deletions admin/acf-fields/developer-general-settings-acf.php

This file was deleted.

8 changes: 0 additions & 8 deletions admin/ajax/api-checkpoint.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<?php
/**
* Init Remove Unused Media .
*/

if (!wp_verify_nonce($_POST['nonce'], 'ajax-nonce')) {
wp_send_json_error('Security check failed', '400');
wp_die();
Expand All @@ -12,11 +8,9 @@
return;
}


if($_POST['plugin_slug'] == 'ronik_media_cleaner'){
$f_option = update_option('rbp_media_cleaner_api_key', (isset($_POST['apikey'])) ? $_POST['apikey'] : '' );
$f_option_validation = update_option('rbp_media_cleaner_api_key_validation', (isset($_POST['apikeyValidation'])) ? $_POST['apikeyValidation'] : 'invalid' );

if($f_option){
// Send sucess message!
wp_send_json_success('Reload');
Expand All @@ -29,7 +23,6 @@
if($_POST['plugin_slug'] == 'ronik_optimization'){
$f_option = update_option('rbp_optimization_api_key', (isset($_POST['apikey'])) ? $_POST['apikey'] : '' );
$f_option_validation = update_option('rbp_optimization_api_key_validation', (isset($_POST['apikeyValidation'])) ? $_POST['apikeyValidation'] : 'invalid' );

if($f_option){
// Send sucess message!
wp_send_json_success('Reload');
Expand All @@ -38,4 +31,3 @@
wp_send_json_error('No rows found!');
}
}

Loading

0 comments on commit 9685a21

Please sign in to comment.