[wp-trac] [WordPress Trac] #50380: Check if _deprecated_file function exists in class-phpmailer.php

WordPress Trac noreply at wordpress.org
Fri Jun 12 21:08:23 UTC 2020


#50380: Check if _deprecated_file function exists in class-phpmailer.php
-------------------------------+--------------------------------
 Reporter:  TimothyBlynJacobs  |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  5.5
Component:  Mail               |     Version:  trunk
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48034" 48034]:
 {{{
 #!CommitTicketReference repository="" revision="48034"
 External Libraries: Skip deprecated file warning for PHPMailer if the API
 is not loaded.

 In [48033] the "class-phpmailer.php" file was deprecated. In test suites,
 this file is loaded before WordPress in order to setup a mock PHPMailer
 instance. This means that for test suites that are still loading that
 file, they'll experience fatal errors due to the undefined
 "_deprecated_file" function.

 This commit skips issuing the deprecated file warning if the
 "_deprecated_file" function is not available.

 Fixes #50380.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50380#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list