Bug in the WordPress plugin

Hi there

Every time I install the plugin I get errors in my admin panel that require I go fix the plugin again. I am hoping you will fix it for the next update.

the problem is incredibly simple. You are assuming a variable will exist inside $_REQUEST and just go ahead and test it’s value. Unfortunately, that variable does NOT exist and thus WordPress throws out this:

Notice : Undefined index: patreon_wordpress_action in E:\xampp\htdocs\wp-content\plugins\patreon-connect\classes\patreon_wordpress.php on line 1727

Notice : Undefined index: patreon_wordpress_action in E:\xampp\htdocs\wp-content\plugins\patreon-connect\classes\patreon_wordpress.php on line 1800

All it takes to fix this is to add this at the start of the function:

  if (!in_array('patreon_wordpress_action',$_REQUEST)) return;

Thanks in advance

Thanks for reporting!

That notice and the situation that causes it should not affect normal operation of your site or the integration. Notices shouldnt be on in production sites in any case.

That said, i will look into it in the subsequent releases.