[wp-trac] [WordPress Trac] #63066: Warning when array passed to wp_check_invalid_utf8()
WordPress Trac
noreply at wordpress.org
Tue Aug 12 01:19:38 UTC 2025
#63066: Warning when array passed to wp_check_invalid_utf8()
--------------------------+------------------------------
Reporter: leedxw | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by siliconforks):
It seems like there are three different issues here.
===== 1. The original reported issue on the `wp-login.php` page.
[https://github.com/WordPress/wordpress-
develop/blob/e062f66c61324370fa4d04917c90b00a1c2ffbde/src/wp-
login.php#L416 The underlying cause of the problem] appears to be that
`login_footer()` in `wp-login.php` does not check that
`$_GET['redirect_to']` is a string before passing it to `sanitize_url()`.
In [58023], validation of `redirect_to` was added in a few different
locations, but it looks like this one was missed.
===== 2. The "Array to string conversion" issue on the `wp-
admin/customize.php` page.
I suspect this is coming from a plugin or theme (I can't reproduce it on a
clean install with no plugins), but a stack trace will probably be needed
to know for sure.
@garrigan - did you check your site's error log? I think there should be
a stack trace there?
===== 3. The 404 error
This is a known issue: #54435
I don't think this is related to the "Array to string conversion" issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63066#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list