@@ -71,7 +71,7 @@ function mg_mutate_to_rcpt_vars_cb( $to_addrs ): array {
7171 }
7272
7373 if (has_filter ('mg_use_recipient_vars_syntax ' )) {
74- $ rcpt_vars = array () ;
74+ $ rcpt_vars = [] ;
7575 $ use_rcpt_vars = apply_filters ('mg_use_recipient_vars_syntax ' , null );
7676 if ($ use_rcpt_vars ) {
7777
@@ -122,7 +122,7 @@ function mg_mutate_to_rcpt_vars_cb( $to_addrs ): array {
122122 * @return bool
123123 * @throws \PHPMailer\PHPMailer\Exception
124124 */
125- function wp_mail ( $ to , $ subject , $ message , $ headers = '' , $ attachments = array () ) {
125+ function wp_mail ( $ to , $ subject , $ message , $ headers = '' , $ attachments = [] ) {
126126 $ mailgun = get_option ('mailgun ' );
127127 $ region = ( defined ('MAILGUN_REGION ' ) && MAILGUN_REGION ) ? MAILGUN_REGION : $ mailgun ['region ' ];
128128 $ apiKey = ( defined ('MAILGUN_APIKEY ' ) && MAILGUN_APIKEY ) ? MAILGUN_APIKEY : $ mailgun ['apiKey ' ];
@@ -169,12 +169,12 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
169169 $ attachments = explode ("\n" , str_replace ("\r\n" , "\n" , $ attachments ));
170170 }
171171
172- $ cc = array () ;
173- $ bcc = array () ;
172+ $ cc = [] ;
173+ $ bcc = [] ;
174174
175175 // Headers
176176 if (empty ($ headers )) {
177- $ headers = array () ;
177+ $ headers = [] ;
178178 } else {
179179 if ( ! is_array ($ headers )) {
180180 // Explode the headers out, so this function can take both
@@ -183,9 +183,9 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
183183 } else {
184184 $ tempheaders = $ headers ;
185185 }
186- $ headers = array () ;
187- $ cc = array () ;
188- $ bcc = array () ;
186+ $ headers = [] ;
187+ $ cc = [] ;
188+ $ bcc = [] ;
189189
190190 // If it's actually got contents
191191 if ( ! empty ($ tempheaders )) {
@@ -273,7 +273,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
273273 $ body ['recipient-variables ' ] = $ rcpt_data ['rcpt_vars ' ];
274274 }
275275
276- $ body ['o:tag ' ] = array () ;
276+ $ body ['o:tag ' ] = [] ;
277277 if (defined ('MAILGUN_TRACK_CLICKS ' )) {
278278 $ trackClicks = MAILGUN_TRACK_CLICKS ;
279279 } else {
0 commit comments