Skip to:
Content

BuddyPress.org

Changeset 11432


Ignore:
Timestamp:
02/16/2017 10:25:17 PM (8 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.

Fixes #7445.

File:
1 edited

Legend:

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

    r11409 r11432  
    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.