[wp-trac] [WordPress Trac] #29750: array_unshift() PHP Warning when wp.getUsersBlogs is attacked (poorly)
WordPress Trac
noreply at wordpress.org
Thu Jul 7 15:49:22 UTC 2016
#29750: array_unshift() PHP Warning when wp.getUsersBlogs is attacked (poorly)
--------------------------+-----------------------------
Reporter: kitchin | Owner:
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: XML-RPC | Version: 4.0
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------------
Comment (by Howdy_McGee):
This has become a big issue recently on my sites. Could we not just verify
at the beginning that we're working with an array? Most the issues I've
seen in my debug logs is that it's either being passed `null` or a string
instead of the expected array.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29750#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list