Skip to:
Content

BuddyPress.org

Changeset 11433


Ignore:
Timestamp:
02/16/2017 10:44:24 PM (7 years ago)
Author:
r-a-y
Message:

XProfile Admin: Fix profile field edit and delete URLs for multisite.

See r11345 where this bug was introduced (#4646). admin_url() only
works for single-site installs, which broke compatibility with multisite.

This commit fixes this by using network_admin_url() instead of
admin_url(), which is both single-site and multisite-compatible.

See #7445 (2.8-branch).

File:
1 edited

Legend:

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

    r11409 r11433  
    566566            'mode'     => 'edit_field'
    567567        ),
    568         admin_url( 'users.php' )
     568        network_admin_url( 'users.php' )
    569569    );
    570570
     
    576576                'mode'     => 'delete_field'
    577577            ),
    578             admin_url( 'users.php' ) . '#tabs-' . (int) $field->group_id
     578            network_admin_url( 'users.php' ) . '#tabs-' . (int) $field->group_id
    579579        );
    580580    }
Note: See TracChangeset for help on using the changeset viewer.