[Plugin: Simple Facebook Share Button] PHP Notices: Undefined Index
-
Using version 2.0.3 of your plugin, I’m getting some PHP notices — looks like you’re not checked whether array indexes are set before attempting to read from them:
Notice: Undefined index: display in /path/to/site/wp-content/plugins/simple-facebook-share-button/simple_fb_share_button.php on line 57
You could pass an array with keys as your default value to the get_option() function, and/or use isset() to determine if that index is defined in lines 57 and 58.
I recommend adding this to your wp-config.php while developing:
define('WP_DEBUG', true);
https://www.ads-software.com/extend/plugins/simple-facebook-share-button/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Simple Facebook Share Button] PHP Notices: Undefined Index’ is closed to new replies.