Skip to content

Commit

Permalink
fix: load Give_email_Access class
Browse files Browse the repository at this point in the history
to prevent fatal error when click on resend receipt button

ref #4068
  • Loading branch information
ravinderk committed Mar 29, 2019
1 parent 522731d commit e10f19e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/emails/class-give-email-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,11 @@ function give_email_tag_donation_history_link( $tag_args ) {
$donor = array();
$email_access_link = '';

if( ! ( Give()->email_access instanceof Give_Email_Access ) ){
require_once GIVE_PLUGIN_DIR . 'includes/class-give-email-access.php';
Give()->email_access = new Give_Email_Access();
}

// Backward compatibility.
$tag_args = __give_20_bc_str_type_email_tag_param( $tag_args );

Expand Down

0 comments on commit e10f19e

Please sign in to comment.