Skip to content

Commit

Permalink
Maybe: pass the WordCamp name in query string
Browse files Browse the repository at this point in the history
Need to confirm with @StevenDufresne as to whether this is needed and ideal.
  • Loading branch information
tellyworth committed Oct 18, 2024
1 parent d2eb879 commit 127578f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function block_unauthenticated_actions() {
global $camptix;

if ( ! is_user_logged_in() && isset( $_REQUEST['tix_action'] ) ) {
wp_safe_redirect( wp_login_url( $camptix->get_tickets_url() ) );
wp_safe_redirect( add_query_arg( 'wcname', get_bloginfo( 'name' ), wp_login_url( $camptix->get_tickets_url() ) ) );
exit();
}
}
Expand Down

1 comment on commit 127578f

@StevenDufresne
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for me.

Please sign in to comment.