WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Wp_logout Issue with Domain Mapping

[Resolved] Wp_logout Issue with Domain Mapping

  • fcvolunteer
    Participant

    @fcvolunteer

    I’m using a multisite and I set my site up at parentsite.com/mysite. My theme has a logout button (not in the admin bar) and when it was clicked it worked correctly and logged the users out and brought them back to the homepage. Here’s what the code was:
    <a class="logout with-icon" href="<?php echo wp_logout_url( get_permalink() ) ?>" data-icon=""><?php _e('Log out', 'franklin') ?></a>

    Then I bought a new domain name (mysite.com) for the site, installed this plugin and set up the A name to point to parentsite.com/mysite. Everything works fine except instead of the logout button bringing them to the homepage of mysite.com it brings them to the homepage of parentsite.com with this in the url: http://parentsite.com/?dm=cd427564d8195660acb35d2669c96069&action=logout&blogid=8&k=87e709a6777fa366cd42edc1c52f1db9&t=1751394297

    I’ve tried changing the code to:

    <a class="logout with-icon" href="<?php echo wp_logout_url('http://mysite.com') ?>" data-icon=""><?php _e('Log out', 'franklin') ?></a>

    but that didn’t help. I’ve also tried

    <a class="logout with-icon" href="<?php echo wp_logout_url('http://parentsite.com/mysite') ?>" data-icon=""><?php _e('Log out', 'franklin') ?></a>

    and

    <a class="logout with-icon" href="<?php echo wp_logout_url( home_url() ); ?>" data-icon="&#xf0

    Any ideas?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ron Rennick
    Participant

    @wpmuguru

    Try turning off the remote login setting in domain mapping.

    fcvolunteer
    Participant

    @fcvolunteer

    @ron – Thanks for the super-fast reply. Remote login was turned off but Redirect administration pages to site’s original domain was turned on. I turned it off and it works now!

    Thanks so much! I was at my wits end 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Wp_logout Issue with Domain Mapping’ is closed to new replies.