Changeset 4723
- Timestamp:
- 07/19/2011 08:28:15 PM (14 years ago)
- Location:
- trunk/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r4648 r4723 312 312 313 313 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 else321 $logout_link = '<a href="' . bp_get_root_domain() . '/wp-login.php?action=logout&redirect_to=' . bp_get_root_domain() . '">' . __( 'Log Out', 'buddypress' ) . '</a>';322 323 echo apply_filters( 'bp_logout_link', $logout_link );324 314 } 325 315 -
trunk/bp-core/deprecated/1.3.php
r4613 r4723 236 236 } 237 237 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 */ 245 function 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 238 253 /** Theme *********************************************************************/ 239 254
Note: See TracChangeset
for help on using the changeset viewer.