Skip to content

Commit

Permalink
Merge pull request #4285 from impress-org/issue/4284
Browse files Browse the repository at this point in the history
fix: include receipt_link_url in plain text emails #4284
  • Loading branch information
mikejhale committed Oct 23, 2019
2 parents e5c30c0 + 8ee5727 commit 2a6ddd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/misc-functions.php
Expand Up @@ -2159,7 +2159,7 @@ function give_get_receipt_link( $donation_id ) {
*/
function give_get_receipt_url( $donation_id ) {

$receipt_url = esc_url(
$receipt_url = esc_url_raw(
add_query_arg(
array(
'donation_id' => $donation_id,
Expand All @@ -2183,7 +2183,7 @@ function give_get_view_receipt_link( $donation_id ) {

return sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( give_get_view_receipt_url( $donation_id ) ),
give_get_view_receipt_url( $donation_id ),
esc_html__( 'View the receipt in your browser &raquo;', 'give' )
);

Expand All @@ -2199,7 +2199,7 @@ function give_get_view_receipt_link( $donation_id ) {
*/
function give_get_view_receipt_url( $donation_id ) {

$receipt_url = esc_url(
$receipt_url = esc_url_raw(
add_query_arg(
array(
'action' => 'view_in_browser',
Expand Down

0 comments on commit 2a6ddd8

Please sign in to comment.