You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
later, it will check again, and since if fails by checking the lenght of a number ( undefined ), it will try data.license_key = licenseKey, but licenseKey is empty, so the API will get empty values.
modal:
When activating a premium license, in the modal, selecting the existing account license, the API returns an error
Request:
due to
licenseID
being set to a numberthen it checks for empty, but will pass since licenseKey.length is true
later, it will check again, and since if fails by checking the lenght of a number (
undefined
), it will trydata.license_key = licenseKey
, butlicenseKey
is empty, so the API will get empty values.https://github.com/Freemius/wordpress-sdk/blob/cc31279d088909135b6b2d8b4f2696312f5731fc/templates/forms/license-activation.php#L572C62-L572C66
Solution
Either convert it to string, or just check if
licenseID !== ''
Versions: (*)
2.8.1
The text was updated successfully, but these errors were encountered: