Skip to:
Content

BuddyPress.org

Changeset 4723


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

Deprecate bp_log_out_link(). Fixes #3355

Location:
trunk/bp-core
Files:
2 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
  • trunk/bp-core/deprecated/1.3.php

    r4613 r4723  
    236236    }
    237237
     238/**
     239 * Generate a link to log out. Last used in BP 1.2-beta. You should be using wp_logout_url().
     240 *
     241 * @deprecated 1.3
     242 * @deprecated Use wp_logout_url()
     243 * @since 1.0
     244 */
     245function bp_log_out_link() {
     246    _deprecated_function( __FUNCTION__, '1.3', 'wp_logout_url()' );
     247
     248    $logout_link = '<a href="' . wp_logout_url( bp_get_root_domain() ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';
     249    echo apply_filters( 'bp_logout_link', $logout_link );
     250}
     251
     252
    238253/** Theme *********************************************************************/
    239254
Note: See TracChangeset for help on using the changeset viewer.