Opened 5 years ago
Closed 5 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.7 |
| Component: | Version: | 5.5 | |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
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
@
5 years ago
- Component General → External Libraries
- Keywords needs-patch good-first-bug added
- Milestone Awaiting Review → 5.7
- Owner set to
- Status new → accepted
- Version 5.6 → 5.5
#3
follow-up:
↓ 4
@
5 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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-bugworkflow keyword as this is a good ticket to onboard people for their very first contribution.I'm unsure about moving this to
External librariescomponent, though. @SergeyBiryukov as WP 5.7 Core Tech Lead, I’d rely on you for moving this to the best component if needed :)