mrarrow
Member
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?
Does the old tag work?
If not, then yeah - you'll have to change template tags in alllllll those themes.
mrarrow
Member
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 »</a></p>
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.)