189 AD Roman Plague fix
-
When building custom a WP3 theme, I use the loginout function (below) in my footer to help move into the new theme.
<?php wp_register(); ?><?php wp_loginout(); ?>
But when I was Logged in, the “Logout link” would show up right next to the “Login link” – without any space between the two links. This issued plagued me, I became sick, started walking around in a death robe, and I moaned all the time until I scoured my WP3 code to find the rat.and there it was: at line 189 of the general-template.php file, right in the wordpress\wp-includes folders. I injected the rat with a hypen and two spaces before the open “<a href” tag.
$link = '<a href="' . esc_url( wp_logout_url($redirect) ) . '">' . __('Log out') . '</a>'; $link = ' - <a href="' . esc_url( wp_logout_url($redirect) ) . '">' . __('Log out') . '</a>';
I fell much better now, did I burn my death robe; but i can’t seem to shake the moaning until I have coffee.
- The topic ‘189 AD Roman Plague fix’ is closed to new replies.