Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Logout link in footer fails in WP2.7 (http://forum.bytesforall.com/showthread.php?t=924)

BradBrown Mar 23, 2009 12:54 PM

Logout link in footer fails in WP2.7
 
I found another tiny little bug in the theme. Once again, I fixed my copy, but thought I'd pass the info along.

If you use %loginout% in the footer it generates a logout link that will fail under WP2.7. This is because WP2.7 changed the way that link works.

The change I made is below. Obviously, the way I fixed it would make it fail under previous versions of WP, but I only cared about getting it to work for my version.

bfa_footer.php line 16

Original Code:
PHP Code:

$link '<a href="' get_settings('siteurl') . '/wp-login.php?action=logout">' __('Logout','atahualpa') . '</a>'

Updated Code:
PHP Code:

$link '<a href="' wp_logout_url() . '">' __('Logout','atahualpa') . '</a>'

Thanks again for all your work in creating this amazing theme!

Brad

Flynn Mar 23, 2009 08:48 PM

Thanks, Brad

This is already fixed in 3.2.1 albeit differently

tfs May 24, 2009 04:06 PM

This is still broken on my system. WP 2.7.1 and Atahualpa 3.2.

When I use the logout link in the footer I get the message...

"You are attempting to log out of XXX"
"Please try again."

EDIT: Whoops... I see that you're talking about a non released version. Should I just upgrade to 3.3.3?

tfs May 24, 2009 04:10 PM

What this really boils down to is that under the Meta widget I don't want to see the...

* Entries RSS
* Comments RSS
* WordPress.org

...entries. All I want is Login/Logout and Site Admin. So I'm trying to add a Login/out and Admin portion to my footer instead, which is fine by me anyway.


All times are GMT -6. The time now is 06:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.