WordPress.org

Make WordPress Core

Changeset 10412


Ignore:
Timestamp:
01/22/09 22:31:27 (7 years ago)
Author:
westi
Message:

Add a filter to allow post-by-email plugins better control over the content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-mail.php

    r10150 r10412  
    143143    } 
    144144 
    145     $subject = trim($subject); 
    146  
     145    $subject = trim($subject);   
     146     
    147147    if ( $content_type == 'multipart/alternative' ) { 
    148148        $content = explode('--'.$boundary, $content); 
     
    157157    $content = trim($content); 
    158158 
     159    //Give Post-By-Email extending plugins full access to the content 
     160    //Either the raw content or the content of the last quoted-printable section 
     161    $content = apply_filters('wp_mail_original_content', $content); 
     162     
    159163    if ( false !== stripos($content_transfer_encoding, "quoted-printable") ) { 
    160164        $content = quoted_printable_decode($content); 
Note: See TracChangeset for help on using the changeset viewer.