Skip to:
Content

BuddyPress.org

Changeset 11047


Ignore:
Timestamp:
08/31/2016 12:23:33 AM (4 years ago)
Author:
r-a-y
Message:

Friends: Move friend action hooks to 'bp_actions'.

Previously, these hooks were running on 'bp_init', which is too early.

Props wpdennis.

Fixes #7221.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-actions.php

    r10587 r11047  
    5353    return false;
    5454}
    55 add_action( 'bp_init', 'friends_action_add_friend' );
     55add_action( 'bp_actions', 'friends_action_add_friend' );
    5656
    5757/**
     
    9393    return false;
    9494}
    95 add_action( 'bp_init', 'friends_action_remove_friend' );
     95add_action( 'bp_actions', 'friends_action_remove_friend' );
Note: See TracChangeset for help on using the changeset viewer.