• Resolved AgentSplurge

    (@agentsplurge)


    Hi,

    I am using your plugin in conjunction with several others to create quite a complex setup, but I will try to explain simplified!

    Basically when a user registered on our multisite a ‘template’ site is cloned for them, with lot of things hidden from all users except me (superadmin).

    The only problem is when I am logged in to the template site and save the admin toolbar, the WP nonce value at that time is saved into the URL, so the user of the cloned site is unable to log out.

    The most simple solution would be to modify the link to link to <?php echo wp_logout_url( home_url() ); ?>, but this ofcourse doesn’t work.

    The only thing I can think would be to create a custom page that refreshed to the wp_logout_url, and adding a link to that in the admin toolbar. Can you think of any better suggestions to try?

    Thanks,

    Lloyd

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi Lloyd,

    The plugin has not been tested to use with multisite. So to confirm the issue though, the issue is that when you save the toolbar it is saving the domain name in the logout url which means when the toolbar is on these other sites it still has the logout url for the other site?

    Or is the issue just that the nonce is in the URL? Because if this the issue why can’t you just remove the nonce from the URL?

    If the issue is the first thing I mentioned, then this same kind of issue would also apply to the “Visit Site” link in the admin toolbar as this to is site specific as well? It is possible to solve this with customisation but it requires quite a bit of work.

    Thanks,

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Due to inactivity I am going to mark this as solved.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Admin toolbar link’ is closed to new replies.