Skip to content

Commit

Permalink
Hook invitation clear catch later than 'wp'
Browse files Browse the repository at this point in the history
It was previously hooked before BP's canonical redirect, which meant that its
role as a cookie-catcher were being nullified by the double redirect
  • Loading branch information
boonebgorges committed May 9, 2014
1 parent ded29ee commit 2f1fce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion by-email/by-email.php
Expand Up @@ -453,7 +453,7 @@ function invite_anyone_catch_clear() {
bp_core_redirect( $bp->displayed_user->domain . $bp->invite_anyone->slug . '/sent-invites/' );
}
}
add_action( 'wp', 'invite_anyone_catch_clear', 1 );
add_action( 'bp_template_redirect', 'invite_anyone_catch_clear', 5 );

function invite_anyone_screen_one() {
global $bp;
Expand Down

0 comments on commit 2f1fce9

Please sign in to comment.