File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -448,12 +448,6 @@ private function do_license_process( $license, $action = 'toggle' ) {
448448 return new \WP_Error ( 'themeisle-license-already-deactivate ' , 'License not active. ' );
449449 }
450450
451- // retrieve the license from the database.
452- $ api_params = array (
453- 'license ' => $ license ,
454- 'item_name ' => rawurlencode ( $ this ->product ->get_name () ),
455- 'url ' => rawurlencode ( home_url () ),
456- );
457451 if ( 'toggle ' === $ action ) {
458452 $ action = ( 'valid ' !== $ status ? ( 'activate ' ) : ( 'deactivate ' ) );
459453 }
@@ -504,7 +498,7 @@ private function do_license_process( $license, $action = 'toggle' ) {
504498 $ this ->reset_failed_checks ();
505499 }
506500
507- if ( 'deactivate_license ' === $ api_params [ ' edd_action ' ] ) {
501+ if ( 'deactivate ' === $ action ) {
508502
509503 delete_option ( $ this ->product ->get_key () . '_license_data ' );
510504 delete_option ( $ this ->product ->get_key () . '_license_plan ' );
You can’t perform that action at this time.
0 commit comments