Opened 3 years ago
Closed 3 years ago
#8921 closed defect (bug) (fixed)
extract_audio can cause depreciation notice in PHP 8.1
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 11.3.0 | Priority: | normal |
| Severity: | normal | Version: | 11.2.0 |
| Component: | Core | Keywords: | reporter-feedback has-patch |
| Cc: |
Description
Hi
extract_audio can cause a depreciation notice on line 645 when calling untrailingslashit if it encounters a link that only has a query parameter and no path. A link like
<a id="reload" href="?reload">Reload</a>
will cause the error.
Change History (6)
This ticket was mentioned in PR #122 on buddypress/buddypress by @imath.
3 years ago
#4
- Keywords has-patch added; needs-patch removed
In BP_Media_Extractor::extract_audio make sure `$path is a string.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/8921
Note: See
TracTickets for help on using
tickets.
Just adding a typecast before the
untrailingslashitcall should fix this.