plausible / wordpress

Plausible Analytics WordPress plugin
https://plausible.io/wordpress-analytics-plugin
MIT License
50 stars 26 forks source link

Ensure the extension array in Helpers is indeed an array #176

Closed skyminds closed 7 months ago

skyminds commented 7 months ago

Solves the fatal error when no options are set in the plugin, and ensures the $extension array exists.

Fixes #175

Dan0sz commented 7 months ago

This PR checks if $extension is an array, which is always a string. So, I'm closing this. I've added the fix to #175 myself in https://github.com/plausible/wordpress/commit/8b349d3d1a4cab19d29051854a21f30b00703355