envato / envato-theme-check

The WordPress Theme Check plugin for Envato
GNU General Public License v2.0
208 stars 57 forks source link

More than one domain false warning fixed. #38

Closed sungraizfaryad closed 5 years ago

sungraizfaryad commented 5 years ago

There is a bug in the plugin. When it checks the domains then the array_unique function just remove the duplicate values, not the empty ones. So, it is causing the issue and displaying the false warning. Here is the full array before the array_unique plugin applied. https://jmp.sh/4oMlQx5 So, please add a check which also removes the empty values. You can use array_filter after array_unique as i implemented here https://jmp.sh/VZTJNLA