Skip to:
Content

BuddyPress.org

Changeset 5510


Ignore:
Timestamp:
12/11/2011 06:28:30 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Do not load the admin functions when not in wp-admin. Fixes #3836.

File:
1 edited

Legend:

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

    r5464 r5510  
    275275 */
    276276function bp_core_admin_menu_init() {
     277
     278    // Bail if not in admin
     279    if ( !is_admin() )
     280        return false;
     281
     282    // Bail if user cannot moderate
    277283    if ( !bp_current_user_can( 'bp_moderate' ) )
    278284        return false;
Note: See TracChangeset for help on using the changeset viewer.