Opened 18 months ago
Closed 18 months ago
#8921 closed defect (bug) (fixed)
extract_audio can cause depreciation notice in PHP 8.1
Reported by: | thomaslhotta | Owned by: | imath |
---|---|---|---|
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.
18 months 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
untrailingslashit
call should fix this.