[wp-trac] [WordPress Trac] #62828: Array should not be passed to get_page_by_path()
WordPress Trac
noreply at wordpress.org
Tue Jan 21 06:13:08 UTC 2025
#62828: Array should not be passed to get_page_by_path()
--------------------------+------------------------------
Reporter: leedxw | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by abcd95):
Hey @leedxw, Thanks for bringing this up.
As mentioned in the above two comments, the warning is visible in 6.7.1
and not on the trunk. So I upgraded to the nightly build, and I was able
to see the warning there too.
And the patch works fine fixing the warning. However, it would be better
to further sanitize the variable to make sure it is a string passed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62828#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list