Ticket #23291: 23291.diff

File 23291.diff, 1.1 KB (added by iandunn, 4 months ago)
Line 
1Index: wp-includes/pluggable.php
2===================================================================
3--- wp-includes/pluggable.php   (revision 23348)
4+++ wp-includes/pluggable.php   (working copy)
5@@ -356,6 +356,7 @@
6                        }
7                        $phpmailer->AddAddress( $recipient, $recipient_name);
8                } catch ( phpmailerException $e ) {
9+                       trigger_error( $e->getMessage(), E_USER_NOTICE );
10                        continue;
11                }
12        }
13@@ -378,6 +379,7 @@
14                                }
15                                $phpmailer->AddCc( $recipient, $recipient_name );
16                        } catch ( phpmailerException $e ) {
17+                               trigger_error( $e->getMessage(), E_USER_NOTICE );
18                                continue;
19                        }
20                }
21@@ -396,6 +398,7 @@
22                                }
23                                $phpmailer->AddBcc( $recipient, $recipient_name );
24                        } catch ( phpmailerException $e ) {
25+                               trigger_error( $e->getMessage(), E_USER_NOTICE );
26                                continue;
27                        }
28                }
29@@ -439,6 +442,7 @@
30                        try {
31                                $phpmailer->AddAttachment($attachment);
32                        } catch ( phpmailerException $e ) {
33+                               trigger_error( $e->getMessage(), E_USER_NOTICE );
34                                continue;
35                        }
36                }
37@@ -450,6 +454,7 @@
38        try {
39                $phpmailer->Send();
40        } catch ( phpmailerException $e ) {
41+               trigger_error( $e->getMessage(), E_USER_NOTICE );
42                return false;
43        }
44