Opened 4 years ago
Closed 4 years ago
#52369 closed defect (bug) (fixed)
Deprecated wp-includes/SMTP.php should use require_once to include the new namespaced class
Reported by: | greatsaltlake | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 5.7 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Keywords: | good-first-bug has-patch | |
Focuses: | Cc: |
Description
Currently the deprecated file uses
<?php require __DIR__ . '/PHPMailer/SMTP.php';
which can lead to a fatal error if that class or the deprecated file has already been loaded.
Attachments (1)
Change History (6)
#1
@
4 years ago
- Component changed from General to External Libraries
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to 5.7
- Owner set to audrasjb
- Status changed from new to accepted
- Version changed from 5.6 to 5.5
#3
follow-up:
↓ 4
@
4 years ago
- Keywords has-patch added; needs-patch removed
Hi,
This is my first contribution.
In this patch i replaced require with require_once.
Note: See
TracTickets for help on using
tickets.
Hi @greatsaltlake, welcome to WordPress Core Trac and thank you for opening this ticket.
The bug report makes sense to me.
Moving it to the current milestone (5.7) and adding the
good-first-bug
workflow keyword as this is a good ticket to onboard people for their very first contribution.I'm unsure about moving this to
External libraries
component, though. @SergeyBiryukov as WP 5.7 Core Tech Lead, I’d rely on you for moving this to the best component if needed :)