Changeset 8572 for trunk/wp-includes/pluggable.php
- Timestamp:
- 08/06/2008 08:31:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r8564 r8572 281 281 if ( !empty( $tempheaders ) ) { 282 282 // Iterate through the raw headers 283 foreach ( $tempheaders as $header ) {283 foreach ( (array) $tempheaders as $header ) { 284 284 if ( strpos($header, ':') === false ) 285 285 continue; … … 364 364 // Add any CC and BCC recipients 365 365 if ( !empty($cc) ) { 366 foreach ( $cc as $recipient) {366 foreach ( (array) $cc as $recipient ) { 367 367 $phpmailer->AddCc( trim($recipient) ); 368 368 } 369 369 } 370 370 if ( !empty($bcc) ) { 371 foreach ( $bcc as $recipient) {371 foreach ( (array) $bcc as $recipient) { 372 372 $phpmailer->AddBcc( trim($recipient) ); 373 373 } … … 402 402 // Set custom headers 403 403 if ( !empty( $headers ) ) { 404 foreach ($headers as $name => $content ) {404 foreach( (array) $headers as $name => $content ) { 405 405 $phpmailer->AddCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) ); 406 406 } … … 790 790 while($found) { 791 791 $found = false; 792 foreach( $strip as $val) {792 foreach( (array) $strip as $val ) { 793 793 while(strpos($location, $val) !== false) { 794 794 $found = true;
Note: See TracChangeset
for help on using the changeset viewer.