WordPress.org

Make WordPress Core

Changeset 10967


Ignore:
Timestamp:
04/17/09 00:06:18 (6 years ago)
Author:
ryan
Message:

Fix headers array processing for wp_mail(). Props gortsleigh. fixes #9284

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r10931 r10967  
    261261    if ( empty( $headers ) ) { 
    262262        $headers = array(); 
    263     } elseif ( !is_array( $headers ) ) { 
    264         // Explode the headers out, so this function can take both 
    265         // string headers and an array of headers. 
    266         $tempheaders = (array) explode( "\n", $headers ); 
     263    } else { 
     264        if ( !is_array( $headers ) ) { 
     265            // Explode the headers out, so this function can take both 
     266            // string headers and an array of headers. 
     267            $tempheaders = (array) explode( "\n", $headers ); 
     268        } else { 
     269            $tempheaders = $headers; 
     270        } 
    267271        $headers = array(); 
    268272 
Note: See TracChangeset for help on using the changeset viewer.