bb_fix_link

The BuddyPress bb fix link function.

Description

bb_fix_link( $link ); 

Parameters (1)

0. $link
The link.

Usage

  1. if ( !function_exists( 'bb_fix_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-formatting.php'; 
  3.  
  4. // The link. 
  5. $link = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_fix_link($link); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/functions.bb-formatting.php  
  1. function bb_fix_link( $link ) { 
  2. if ( false === strpos($link, '.') ) // these are usually random words 
  3. return ''; 
  4. $link = wp_kses_no_null( $link ); 
  5. return esc_url( $link );