includes/wpinv-template-functions.php 1 location
|
@@ 802-807 (lines=6) @@
|
799 |
|
$user_id = $invoice->get_user_id(); |
800 |
|
$secret = sanitize_text_field( $_GET['_wpipay'] ); |
801 |
|
|
802 |
|
if ( $secret === md5( $user_id . '::' . $invoice->get_email() . '::' . $invoice->get_key() ) ) { // valid invoice link |
803 |
|
$redirect_to = remove_query_arg( '_wpipay', get_permalink() ); |
804 |
|
|
805 |
|
wpinv_guest_redirect( $redirect_to, $user_id ); |
806 |
|
wpinv_die(); |
807 |
|
} |
808 |
|
} |
809 |
|
$redirect_to = is_user_logged_in() ? wpinv_get_history_page_uri() : wp_login_url( get_permalink() ); |
810 |
|
|
includes/wpinv-invoice-functions.php 1 location
|
@@ 1724-1729 (lines=6) @@
|
1721 |
|
$user_id = $invoice->get_user_id(); |
1722 |
|
$secret = sanitize_text_field( $_GET['_wpipay'] ); |
1723 |
|
|
1724 |
|
if ( $secret === md5( $user_id . '::' . $invoice->get_email() . '::' . $invoice_key ) ) { // valid invoice link |
1725 |
|
$redirect_to = remove_query_arg( '_wpipay', get_permalink() ); |
1726 |
|
|
1727 |
|
wpinv_guest_redirect( $redirect_to, $user_id ); |
1728 |
|
wpinv_die(); |
1729 |
|
} |
1730 |
|
} |
1731 |
|
} |
1732 |
|
} |