Skip to:
Content

BuddyPress.org

Changeset 622


Ignore:
Timestamp:
12/05/2008 09:16:16 PM (16 years ago)
Author:
apeatling
Message:

Adding check for wp_logout_link() function otherwise BuddyPress will fail in WP < 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/member-themes/buddypress-member/header.php

    r618 r622  
    4949            <?php bp_loggedinuser_avatar_thumbnail( 20, 20 ) ?> &nbsp;
    5050            <?php bp_loggedinuser_link() ?>
    51             / <a href="<?php echo wp_logout_url(site_url()) ?>" alt="<?php _e( 'Log Out', 'buddypress' ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>
     51           
     52            <?php if ( function_exists('wp_logout_url') ) : ?>
     53                / <a href="<?php echo wp_logout_url(site_url()) ?>" alt="<?php _e( 'Log Out', 'buddypress' ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>         
     54            <?php else : ?>
     55                / <a href="<?php echo site_url() . '/wp-login.php?action=logout&amp;redirect_to=' . site_url() ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>
     56            <?php endif; ?>
    5257        </div>
    5358    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.