bb_user_sanitize

The BuddyPress bb user sanitize function.

Description

bb_user_sanitize( $text, (bool) $strict = false ); 

Parameters (2)

0. $text
The text.
1. $strict — Optional. (bool) => false
The strict.

Usage

  1. if ( !function_exists( 'bb_user_sanitize' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The text. 
  5. $text = null; 
  6.  
  7. // The strict. 
  8. $strict = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bb_user_sanitize($text, $strict); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_user_sanitize( $text, $strict = false ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'sanitize_user'); 
  3. return sanitize_user( $text, $strict );