Opened 5 years ago
Closed 5 years ago
#8288 closed defect (bug) (fixed)
PHP 7.4 Notice: Trying to access array offset...
Reported by: | mercime | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 6.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch commit |
Cc: |
Description
Member pages and Group pages:
PHP Notice: Trying to access array offset on value of type int in https://example.com/wp-includes/formatting.php on line 904
- on WP trunk and BP trunk
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Seems to be caused by WP 5.4.1 due to the
seems_utf8()
check used insanitize_file_name()
: https://github.com/WordPress/WordPress/commit/cdd7f88252487e243734d9bfd61477bf2d1f64f1seems_utf8()
throws this notice when an integer value is passed and we do so in a few spots.Attached patch fixes this by removing
sanitize_file_name()
when we're passing integer values.