Prevent warning on wp-login.php
-
Hello,
I get this warning message on WP Engine hosting caused by your plugin:
Notice: Undefined index: loginTwitter in /nas/content/live/***/wp-content/plugins/nextend-twitter-connect/nextend-twitter-connect.php on line 116IMHO you should add condition on that line to check if ‘loginTwitter’ is set as parameter of $_REQUEST. This should solve this warning message.
I changed new_twitter_login() function to:
function new_twitter_login() { if ( isset( $_REQUEST['loginTwitter'] ) ) { if ( $_REQUEST['loginTwitter'] == '1' ) { new_twitter_login_action(); } } }Please let me know if it is good solution. Thanks!
Michal
The topic ‘Prevent warning on wp-login.php’ is closed to new replies.