diff --git a/inc/Modules/Settings/Settings.php b/inc/Modules/Settings/Settings.php index 25aad75..519c0ff 100644 --- a/inc/Modules/Settings/Settings.php +++ b/inc/Modules/Settings/Settings.php @@ -336,7 +336,7 @@ public static function get_api_key(): string { $api_key = ! empty( $api_key ) ? Encryptor::decrypt( $api_key ) : self::regenerate_api_key(); - return $api_key; + return $api_key ?: ''; } /** @@ -358,7 +358,7 @@ public static function regenerate_api_key(): string { do_action( 'onedesign_regenerate_api_key', $api_key, get_current_blog_id() ); } - return $api_key ?: ''; + return $api_key; } /**