[buddypress-trac] [BuddyPress Trac] #7472: Law problem on the user field page

buddypress-trac noreply at wordpress.org
Mon Mar 20 10:44:21 UTC 2017


#7472: Law problem on the user field page
--------------------------+-------------------------------------
 Reporter:  NicolasKulka  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  Awaiting Review
Component:  Core          |    Version:  2.8.2
 Severity:  major         |   Keywords:  has-patch needs-testing
--------------------------+-------------------------------------
 Hello,

 On the "User Fields Management" page, when the plugin is not activated on
 the network, you can not modify or delete a field. (wp-
 admin/users.php?page=bp-profile-setup)

 I solved the problem by correcting the lines 616 and 626 of file
 buddypress/bp-xprofile/bp-xprofile-admin.php.

 Replace : network_admin_url by admin_url

 {{{#!php
 <?php
 $field_edit_url = add_query_arg(
                 array(
                         'page'     => 'bp-profile-setup',
                         'group_id' => (int) $field->group_id,
                         'field_id' => (int) $field->id,
                         'mode'     => 'edit_field'
                 ),
                 admin_url( 'users.php' )
         );

         if ( $field->can_delete ) {
                 $field_delete_url = add_query_arg(
                         array(
                                 'page'     => 'bp-profile-setup',
                                 'field_id' => (int) $field->id,
                                 'mode'     => 'delete_field'
                         ),
                         admin_url( 'users.php' ) . '#tabs-' . (int)
 $field->group_id
                 );
         }
 }}}
 ]

 Think you correct it?

 Thank you

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7472>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list