Changeset 48035
- Timestamp:
- 06/12/2020 09:40:52 PM (5 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-phpmailer.php
r48034 r48035 5 5 */ 6 6 if ( function_exists( '_deprecated_file' ) ) { 7 _deprecated_file( basename( __FILE__ ), '5.5.0', WPINC . '/PHPMailer/PHPMailer.php', __( 'The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' ) ); 7 _deprecated_file( 8 basename( __FILE__ ), 9 '5.5.0', 10 WPINC . '/PHPMailer/PHPMailer.php', 11 __( 'The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' ) 12 ); 8 13 } 14 9 15 require __DIR__ . '/PHPMailer/PHPMailer.php'; 16 require __DIR__ . '/PHPMailer/Exception.php'; 10 17 11 18 class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' ); 19 class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' ); -
trunk/src/wp-includes/class-smtp.php
r48033 r48035 4 4 * The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. 5 5 */ 6 _deprecated_file( basename( __FILE__ ), '5.5.0', WPINC . '/PHPMailer/SMTP.php', __( 'The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' ) ); 6 _deprecated_file( 7 basename( __FILE__ ), 8 '5.5.0', 9 WPINC . '/PHPMailer/SMTP.php', 10 __( 'The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' ) 11 ); 12 7 13 require __DIR__ . '/PHPMailer/SMTP.php'; 14 15 class_alias( PHPMailer\PHPMailer\SMTP::class, 'SMTP' );
Note: See TracChangeset
for help on using the changeset viewer.