Skip to content

Commit a617b7d

Browse files
committed
release: fix notice
* Fix notice on license deactivation
1 parent e4a1657 commit a617b7d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Modules/Licenser.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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' );

0 commit comments

Comments
 (0)