# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: \includes\users
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: template-tags.php
--- template-tags.php Base (BASE)
+++ template-tags.php Locally Modified (Based On LOCAL)
@@ -129,13 +129,19 @@
 	 * @return string|bool Value of the field if it exists, else false
 	 */
 	function bbp_get_displayed_user_field( $field = '' ) {
-		$bbp   = bbpress();
+
 		$value = false;
 
-		// Return field if exists
-		if ( isset( $bbp->displayed_user->$field ) )
-			$value = esc_attr( sanitize_text_field( $bbp->displayed_user->$field ) );
+                if ( !empty( $field ) ) {
+                    
+                    	$bbp   = bbpress();
+                        
+                        // Return field if exists
+                        if ( isset( $bbp->displayed_user->$field ) )
+                                $value = $bbp->displayed_user->$field;
 
+                }
+
 		// Return empty
 		return apply_filters( 'bbp_get_displayed_user_field', $value, $field );
 	}
