Make WordPress Core

Changeset 24530


Ignore:
Timestamp:
06/29/2013 11:03:13 PM (13 years ago)
Author:
SergeyBiryukov
Message:

Make wp_mail() return the actual result of PHPMailer::Send() instead of always returning true. props chmac. fixes #23642.

File:
1 edited

Legend:

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

    r24461 r24530  
    449449        // Send!
    450450        try {
    451                 $phpmailer->Send();
     451                return $phpmailer->Send();
    452452        } catch ( phpmailerException $e ) {
    453453                return false;
    454454        }
    455 
    456         return true;
    457455}
    458456endif;
Note: See TracChangeset for help on using the changeset viewer.