We need to change the names of the add-ons to be more descriptive, but doing so will break the update and license checking. To fix this, we need to switch to using the item_id instead of the item_name. item_id should be a number, but we are currently using it incorrectly as text. If we use is_numeric() to check that the item_id is a number, we can use it, otherwise, fall back to the way it is currently being done.
This will give us some time to update the add-ons and for people to install the updates.
https://github.com/firetreedesign/ccbpress-core/blob/eff81412254f34e7cd5efee4119cdd0ac1b87920/includes/class-ccbpress-licenses.php#L101-L121
We need to change the names of the add-ons to be more descriptive, but doing so will break the update and license checking. To fix this, we need to switch to using the
item_id
instead of theitem_name
.item_id
should be a number, but we are currently using it incorrectly as text. If we useis_numeric()
to check that theitem_id
is a number, we can use it, otherwise, fall back to the way it is currently being done.This will give us some time to update the add-ons and for people to install the updates.