Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How hide an xprofile field group on profile edit page?

@simpleone

Participant

@danbp unfortunately adding that additional conditional didn’t make any difference. Perhaps it could be some small parameter that I missed when manually modifying the code in the file. I’ll try again later to redo it when I’m not so tired.

On a separate note, I did notice that in the patch there is a reference to bp-xprofile-group.php. However, that’s a file that doesn’t appear to currently exist (at least not when I searched the BP 2.0.2 files installed on my server). I concluded (perhaps incorrectly?) that the patch developer kept that in there as a reference for the test case that was done to verify this patch works? Or am I perhaps suppose to add a new file with the name bp-xprofile-group.php and include the code that follows that section in the patch?

Here’s the part I’m referring to…

diff --git tests/phpunit/testcases/xprofile/class-bp-xprofile-group.php tests/phpunit/testcases/xprofile/class-bp-xprofile-group.php
index 46f548f..699911b 100644
--- tests/phpunit/testcases/xprofile/class-bp-xprofile-group.php
+++ tests/phpunit/testcases/xprofile/class-bp-xprofile-group.php
@@ -67,4 +67,37 @@ class BP_Tests_BP_XProfile_Group extends BP_UnitTestCase {
Skip to toolbar