The MU forums have moved to

Legacy logging out in Wordpress 2.7 (4 posts)

  1. mrarrow
    Posted 14 years ago #

    OK, so I understand and appreciate that the template tag has changed for logging out of Wordpress MU 2.7.

    However, what about my existing 90+ themes which some/all use the old logout URL (on the theme-specific comments.php template for instance)? Do I really have to go through each one by hand updating it with the new template tag. Surely not?

  2. andrea_r
    Posted 14 years ago #

    Does the old tag work?

    If not, then yeah - you'll have to change template tags in alllllll those themes.

  3. mrarrow
    Posted 14 years ago #

    Jeez, that really does suck if that's the case. Surely who ever came up with the new template tag (<?php echo wp_logout_url( $redirect ); ?> which admittedly does look very useful), could've paid a little bit of thought to how legacy code is dealt with.

    I hadn't bargained on having to manually poke about in each theme - especially not over 90 of them!!!!

    By the way, its changed from:
    <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout &raquo;</a></p>

  4. andrea_r
    Posted 14 years ago #

    That's basically code rolled on from single-user Wordpress.

    And yes, they did think about it. :)

    on WPMU sites, I take out stuff like that and use widgets.

    (yes, I know it was in the comments form, I'd strip it if I could.)

About this Topic

  • Started 14 years ago by mrarrow
  • Latest reply from andrea_r