|
@@ 125-129 (lines=5) @@
|
| 122 |
|
|
| 123 |
|
$output = give_connect_user_donor_profile( $donor, $donor_data, $address ); |
| 124 |
|
|
| 125 |
|
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { |
| 126 |
|
header( 'Content-Type: application/json' ); |
| 127 |
|
echo json_encode( $output ); |
| 128 |
|
wp_die(); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
if ( $output['success'] ) { |
| 132 |
|
wp_redirect( admin_url( "edit.php?post_type=give_forms&page=give-donors&view=overview&id={$donor_id}&give-message=profile-updated" ) ); |
|
@@ 499-503 (lines=5) @@
|
| 496 |
|
|
| 497 |
|
do_action( 'give_post_add_donor_email', $donor_id, $args ); |
| 498 |
|
|
| 499 |
|
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { |
| 500 |
|
header( 'Content-Type: application/json' ); |
| 501 |
|
echo json_encode( $output ); |
| 502 |
|
wp_die(); |
| 503 |
|
} |
| 504 |
|
|
| 505 |
|
return $output; |
| 506 |
|
} |
|
@@ 408-412 (lines=5) @@
|
| 405 |
|
*/ |
| 406 |
|
do_action( 'give_post_donor_disconnect_user_id', $donor_id ); |
| 407 |
|
|
| 408 |
|
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { |
| 409 |
|
header( 'Content-Type: application/json' ); |
| 410 |
|
echo json_encode( $output ); |
| 411 |
|
wp_die(); |
| 412 |
|
} |
| 413 |
|
|
| 414 |
|
return $output; |
| 415 |
|
|