Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/19/2011 08:28:15 PM (15 years ago)
Author:
djpaul
Message:

Deprecate bp_log_out_link(). Fixes #3355

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r4648 r4723  
    312312
    313313        echo apply_filters( 'bp_search_form', $form );
    314 }
    315 
    316 function bp_log_out_link() {
    317         global $bp;
    318         if ( function_exists('wp_logout_url') )
    319                 $logout_link = '<a href="' . wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
    320         else
    321                 $logout_link = '<a href="' . bp_get_root_domain() . '/wp-login.php?action=logout&amp;redirect_to=' . bp_get_root_domain() . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
    322 
    323         echo apply_filters( 'bp_logout_link', $logout_link );
    324314}
    325315
Note: See TracChangeset for help on using the changeset viewer.