• Seeing an Index Noticiation error on tt-sidebar-login.php that shows up on the normal wp login page.

    Yes I know it’s only a notice but a real pain when developing a new site 🙂

    Here’s a patch

    Index: tt-sidebar-login.php
    ===================================================================
    --- tt-sidebar-login.php	(revision 1102872)
    +++ tt-sidebar-login.php	(working copy)
    @@ -317,7 +317,7 @@
     function handle_login_failure($username){
     	// check what page the login attempt is coming from
       	global $current_error;
    -	$referrer = $_SERVER['HTTP_REFERER'];
    +	$referrer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
    
     	if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) {
     		wp_redirect(home_url() . '/?login=failed&errcode='.$current_error );

    Contact me if you would like me to send you the patch file or give me temp access to your svn and I’ll patch for you.

    Regards

    Kevin

    https://ww.wp.xz.cn/plugins/tt-sidebar-login-widget/

The topic ‘Index Notification error’ is closed to new replies.