Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Logout link in footer fails in WP2.7

Prev Previous Post   Next Post Next
Old Mar 23, 2009, 12:54 PM
BradBrown's Avatar
54 posts · Mar 2009
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!



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Footer credit link removal Flynn Atahualpa 3 Wordpress theme 29 Dec 2, 2010 12:19 PM
Can't get page/post padding to work in ver 3.3.3 w/WP2.8 zwolfinger Post-Kicker, -Byline & -Footer 1 Jun 18, 2009 04:16 PM
Adding a link to the Footer of my post Hamlet Post-Kicker, -Byline & -Footer 2 May 21, 2009 06:50 PM
WP-admin logout/in for changes to occur? Craig Mattice Atahualpa 3 Wordpress theme 2 Apr 30, 2009 03:26 PM
Settings Not Saving Until Logout ieatgravel Atahualpa 3 Wordpress theme 3 Apr 14, 2009 05:25 AM

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

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