Make WordPress Core

Changeset 10412 for trunk/wp-mail.php


Ignore:
Timestamp:
01/22/2009 10:31:27 PM (18 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.