Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/02/2016 04:18:14 PM (9 years ago)
Author:
boonebgorges
Message:

Use correct 'Tools' link for "reinstall emails" admin notice.

Previously, the link was incorrect for BP configs where administration takes
place in Network Admin.

Props imath.
Fixes #6929.

File:
1 edited

Legend:

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

    r10610 r10623  
    829829    }
    830830
     831    if ( bp_core_do_network_admin() ) {
     832        $admin_page = 'admin.php';
     833    } else {
     834        $admin_page = 'tools.php';
     835    }
     836
    831837    bp_core_add_admin_notice(
    832838        sprintf(
    833839            __( 'Are your emails in the wrong language? Go to <a href="%s">BuddyPress Tools and run the "reinstall emails"</a> tool.', 'buddypress' ),
    834             bp_get_admin_url( 'tools.php?page=bp-tools' )
     840            esc_url( add_query_arg( 'page', 'bp-tools', bp_get_admin_url( $admin_page ) ) )
    835841        ),
    836842        'updated'
Note: See TracChangeset for help on using the changeset viewer.