updated plugin GP Premium version 2.2.0

This commit is contained in:
2022-10-27 11:14:35 +00:00
committed by Gitium
parent 1465186bc5
commit a626bfa106
77 changed files with 418 additions and 152 deletions

View File

@ -170,7 +170,10 @@ class GeneratePress_Pro_Rest extends WP_REST_Controller {
$new_beta_tester = $request->get_param( 'betaTester' );
$old_license = get_option( 'gen_premium_license_key', '' );
$old_status = get_option( 'gen_premium_license_key_status', 'deactivated' );
$new_license = trim( $new_license_key );
$new_license = strpos( $new_license_key, '***' ) !== false
? trim( $old_license )
: trim( $new_license_key );
if ( $new_license ) {
$api_params = array(