Skip to:
Content

BuddyPress.org

Changeset 5583


Ignore:
Timestamp:
12/23/2011 06:58:27 AM (12 years ago)
Author:
djpaul
Message:

Correct plugin settings link. Props fanquake for initial patch, fixes #3883

File:
1 edited

Legend:

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

    r5575 r5583  
    423423
    424424        if ( plugin_basename( $bp->file ) == $file ) {
    425             $settings_link = '<a href="' . add_query_arg( array( 'page' => 'buddypress' ), admin_url( 'options-general.php' ) ) . '">' . __( 'Settings', 'buddypress' ) . '</a>';
     425            $url           = bp_core_do_network_admin() ? network_admin_url( 'settings.php' ) : admin_url( 'options-general.php' );
     426            $settings_link = '<a href="' . add_query_arg( array( 'page' => 'bp-components' ), $url ) . '">' . __( 'Settings', 'buddypress' ) . '</a>';
    426427            array_unshift( $links, $settings_link );
    427428        }
Note: See TracChangeset for help on using the changeset viewer.