[buddypress-trac] [BuddyPress Trac] #8042: visibility options for Name field appear on registration page
buddypress-trac
noreply at wordpress.org
Mon Jan 28 21:54:40 UTC 2019
#8042: visibility options for Name field appear on registration page
--------------------------+------------------------------
Reporter: msteimann | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: Awaiting Review
Component: Registration | Version: 4.1.0
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by Venutius):
From what I can see the problem is that the default Name profile field has
been set up with it's `allow_custom_visibility` set to `allow`, I've not
been able to track down exactly where in the code it's being set.
I've come up with a workaround as follows:
In line 88 of `buddypress/xprofile/bp-xprofile-caps`
`if ( $field_id && $field = xprofile_get_field( $field_id ) ) {`
Change this to include a check to rule out field number 1:
`if ( $field_id && 1 !== $field_id && $field = xprofile_get_field(
$field_id ) ) {`
That will stop the button being displayed on the registration form.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8042#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list