[wp-trac] [WordPress Trac] #24336: XML RPC arguments for wp.getPosts are invalid

WordPress Trac noreply at wordpress.org
Tue May 14 18:25:22 UTC 2013


#24336: XML RPC arguments for wp.getPosts are invalid
--------------------------+----------------------
 Reporter:  bduffez       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  XML-RPC       |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by DrewAPicture):

 @markoheijnen is correct here in saying that you can't pass array key
 names through. Based on your printed array, you're passing the args in the
 format of:
 {{{
 array(
         'password' => 'foo',
         'filter' => array( 'post_type' => 'page' ),
         'username' => 'bar',
         'blog_id' => 1
 );
 }}}

 when in reality, you should be passing args in the form of:

 {{{
 array(
         1, // blog_id
         'bar', // username
         'foo', // password
         array( 'post_type' => 'page' ), // filter
 )
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24336#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list