Skip to content

Commit 5c3ffaa

Browse files
author
Kilo
committed
Fix local one-time email error handling
1 parent 4f5c8e3 commit 5c3ffaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/Admin/class-admin-email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ private function handle_one_time_email(): void {
535535
'success'
536536
);
537537
} else {
538-
if ( \mskd_is_local_environment() ) {
538+
if ( \MSKD_Environment::is_local() ) {
539539
$error_message = $this->last_mail_error;
540540
} else {
541541
$error_message = __( 'Error sending one-time email.', 'mail-system' );

0 commit comments

Comments
 (0)