PHP notice
Closed this issue · 1 comments
Spreeuw commented
I got this after updating the plugin to 2.4.1:
Notice: Undefined index: wp_sponsor_link_behaviour in /wp-content/plugins/wp-sponsors/includes/class-wp-sponsors.php on line 334
https://github.com/studioespresso/wp-sponsors/blob/master/includes/class-wp-sponsors.php#L334
There's a check for the other $_POST
values but not wp_sponsor_link_behaviour
quick fix:
$link_behaviour = isset($_POST['wp_sponsor_link_behaviour']) ? '1' : '0';
janhenckens commented
Fixed in the today's update.