class-wp-xmlrpc-server.php – array_unshift() expects parameter 1 to be array
-
Complete warning is:
[12-Sep-2016 19:34:53 America/Chicago] PHP Warning: array_unshift() expects parameter 1 to be array, null given in /(path)/wp-includes/class-wp-xmlrpc-server.php on line 596
I have never seen this warning until version 4.6.1.
This is where it happens in the code:
public function wp_getUsersBlogs( $args ) { // If this isn't on WPMU then just use blogger_getUsersBlogs if ( !is_multisite() ) { array_unshift( $args, 1 ); return $this->blogger_getUsersBlogs( $args ); }
Any ideas on what might be causing it?
I suspect normal use of the blog doesn’t cause it, but probably some bot trying to do something hinky. I’ve only seen it a couple times.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘class-wp-xmlrpc-server.php – array_unshift() expects parameter 1 to be array’ is closed to new replies.