Skip to content

Commit

Permalink
Fix: PHP notice for using deprecated give_output_error() rather than …
Browse files Browse the repository at this point in the history
…Give_Notices().
  • Loading branch information
DevinWalker committed Sep 13, 2017
1 parent 8677a3f commit 1728921
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/class-give-iats-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function show_frontend_notices( $form_id ) {
if ( $error_message = $this->get_reject_code( $error_code ) ) {

// Show error.
give_output_error( $error_message, true, "iats-error-{$error_code}" );
Give_Notices::print_frontend_notice( $error_message, true, "iats-error-{$error_code}" );
}
}

Expand All @@ -142,11 +142,11 @@ public function show_admin_notices( $form_id ) {

if ( $error_message = $this->get_reject_code( $error_code ) ) {
?>
<div class="notice notice-error is-dismissible">
<p>
<strong><?php _e( 'iATS donation refund error: ', 'give-iats' ); ?></strong><?php echo $error_message; ?>
</p>
</div>
<div class="notice notice-error is-dismissible">
<p>
<strong><?php _e( 'iATS donation refund error: ', 'give-iats' ); ?></strong><?php echo $error_message; ?>
</p>
</div>
<?php
}
}
Expand Down

0 comments on commit 1728921

Please sign in to comment.