Skip to:
Content

BuddyPress.org

Changeset 3742 for trunk/bp-friends.php


Ignore:
Timestamp:
01/19/2011 08:31:10 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Adjust internal action load orders to stop 'doing it wrong' by moving appropriate actions off plugins_loaded and into init. Fixes #2609 but will need testing; it may have adverse effects on external plugins. Adds missing function_exists checks to bp-default functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r3728 r3742  
    201201    return false;
    202202}
    203 add_action( 'init', 'friends_action_add_friend' );
     203add_action( 'bp_init', 'friends_action_add_friend' );
    204204
    205205function friends_action_remove_friend() {
     
    240240    return false;
    241241}
    242 add_action( 'init', 'friends_action_remove_friend' );
     242add_action( 'bp_init', 'friends_action_remove_friend' );
    243243
    244244
Note: See TracChangeset for help on using the changeset viewer.