• I’m using a function attached to the login_url filter to create a custom login url. This url is currently not preserved when using remote login as redirect_login_to_orig() creates his own login url. The following change fixes this for me.

    Index: domain_mapping.php
    ===================================================================
    --- domain_mapping.php  (revision 821067)
    +++ domain_mapping.php  (working copy)
    @@ -658,6 +658,7 @@
            $url = get_original_url( 'siteurl' );
            if ( $url != site_url() ) {
                    $url .= "/wp-login.php";
    +               $url = apply_filters( 'login_url', $url );
                    echo "<script type='text/javascript'>\nwindow.location = '$url'</script>";
            }
     }

    http://wordpress.org/plugins/wordpress-mu-domain-mapping/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem just for some of my sites and my wp-login.php keeps loading.

    On what line do i need to edit what code?

    Thread Starter Thorsten Ott

    (@tott)

    You can see the line numbers in the diff ( @@ -658,6 +658,7 @@ )

    In file domain_mapping.php line 658 you should find the line

    $url = get_original_url( 'siteurl' );

    A bit further down after

    $url .= "/wp-login.php";

    add the line

    $url = apply_filters( 'login_url', $url );

    and save. That should do it if you have the same problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preserve custom login urls in window.location redirect’ is closed to new replies.