Skip to:
Content

BuddyPress.org

Changeset 3709 for trunk/bp-xprofile.php


Ignore:
Timestamp:
01/14/2011 07:42:25 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Add multisite checks to xprofile and forums components to make sure admin menus, css, and JS are loaded correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r3650 r3709  
    7676    add_submenu_page( 'bp-general-settings', __( 'Profile Field Setup', 'buddypress' ), __( 'Profile Field Setup', 'buddypress' ), 'manage_options', 'bp-profile-setup', 'xprofile_admin' );
    7777}
    78 add_action( 'admin_menu', 'xprofile_add_admin_menu' );
     78is_multisite() ? add_action( 'network_admin_menu', 'xprofile_add_admin_menu' ) : add_action( 'admin_menu', 'xprofile_add_admin_menu' );
    7979
    8080/**
Note: See TracChangeset for help on using the changeset viewer.