A5hleyRich/buddypress-admin-only-profile-fields

Fields with 'Only Me' Visibility Level showing on the Profile front-end

garretthyder opened this issue · 0 comments

Hello,

I ran into an issue installing your plugin, the fields set by the users to be 'Only Me' visibility are showing to external users that aren't logged in or admins. This is especially problematic on the fields where we're requesting private information that shouldn't be visible on the site.

Wordpress Support Ticket;
https://wordpress.org/support/topic/fields-with-only-me-visibility-level-showing-on-the-profile-front-end?replies=1#post-7453476

Screenshots

back-end profile
front-end profile

From my code investigation it appears the filter applied for bp_xprofile_get_hidden_fields_for_user if doesn't match hidden simply returns an empty array rather than allowing the already set-up array perculate through.

Forking and fixing.

Cheers