[wp-trac] [WordPress Trac] #38300: Got a PHP warning: class-wp-xmlrpc-server.php L596: array_unshift() ...

WordPress Trac noreply at wordpress.org
Thu Oct 13 06:46:24 UTC 2016


#38300: Got a PHP warning: class-wp-xmlrpc-server.php L596: array_unshift() ...
--------------------------+-----------------------------
 Reporter:  kmvan         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Sometimes the php_error.log file got a warning:

 {{{
 PHP Warning:  array_unshift() expects parameter 1 to be array, null given
 in /wp-includes/class-wp-xmlrpc-server.php on line 596
 }}}


 {{{#!php
 <?php
 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 );
         }
 ...
 }
 }}}

 The $args is NULL, it doesn't matter?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38300>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list