Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to list content relevant to a logged-in member’s interests (WAS: 1.2.6 upgrade – xprofile_get_fi


Boone Gorges
Keymaster

@boonebgorges

The problem is being caused by the default filters that BP applies to ‘xprofile_get_field_data’. If you put the following lines in your bp-custom.php or functions.php, it will allow you to print_r the array properly:

`remove_filter( ‘xprofile_get_field_data’, ‘wp_filter_kses’, 1 );
remove_filter( ‘xprofile_get_field_data’, ‘force_balance_tags’ );
remove_filter( ‘xprofile_get_field_data’, ‘stripslashes’ );`

I’m not sure what the root issue is, though. I assume the problem is that wp_filter_kses etc don’t know what to do with an array. If that’s true, we’re going to have to figure out a way to sanitize profile data selectively (or at least smartly). I’ll look more deeply at the problem to see if I can come up with a better solution for BP core.

Skip to toolbar