Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/22/2017 06:37:31 PM (8 years ago)
Author:
r-a-y
Message:

XProfile Admin: Fix profile field edit and delete URLs for multisite installs where BuddyPress is not network-activated.

r11432 fixed the profile field edit and delete URLs for multisite installs
where BuddyPress is network-activated, but broke the URLs where
BuddyPress is not network-activated on a multisite install. See #7445,

This changeset rectifies the problem by using bp_get_admin_url() instead
of network_admin_url(). (JJJ is always right!)

Props johnjamesjacoby, NicolasKulka.

Anti-props r-a-y.

Fixes #7472 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r11468 r11519  
    614614            'mode'     => 'edit_field'
    615615        ),
    616         network_admin_url( 'users.php' )
     616        bp_get_admin_url( 'users.php' )
    617617    );
    618618
     
    624624                'mode'     => 'delete_field'
    625625            ),
    626             network_admin_url( 'users.php' ) . '#tabs-' . (int) $field->group_id
     626            bp_get_admin_url( 'users.php' ) . '#tabs-' . (int) $field->group_id
    627627        );
    628628    }
Note: See TracChangeset for help on using the changeset viewer.