Skip to content

Commit

Permalink
Merge pull request #2985 from MaximilianoRicoTabo/bugfix/activity-ema…
Browse files Browse the repository at this point in the history
…il-usage-show-html

Activity Email Discount Code Usage showing HTML
  • Loading branch information
dparker1005 authored Jun 21, 2024
2 parents 8d021d2 + e606cee commit 6ca8ab8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion classes/class-pmpro-admin-activity-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,18 @@ public function sendAdminActivity( $frequency = '', $recipient = null ) {
}
} else {
?>
<p style="margin:0px;padding:0px;"><?php printf( esc_html__( 'No <a %1$s>Discount Codes</a> were used %2$s.', 'paid-memberships-pro' ), 'style="color:#1A688B;" target="_blank" href="' . esc_url( admin_url( 'admin.php?page=pmpro-discountcodes' ) ) . '"', esc_html( $term ) ); ?></p>
<p style="margin:0px;padding:0px;">
<?php
echo wp_kses_post(
sprintf(
// translators: %1$s is the attributes for the anchor tag, %2$s is the term being used.
__( 'No <a %1$s>Discount Codes</a> were used %2$s.', 'paid-memberships-pro' ),
'style="color:#1A688B;" target="_blank" href="' . esc_url( admin_url( 'admin.php?page=pmpro-discountcodes' ) ) . '"',
esc_html( $term )
),
);
?>
</p>
<?php
}
?>
Expand Down

0 comments on commit 6ca8ab8

Please sign in to comment.