[wp-trac] [WordPress Trac] #9447: xmlrpc blogger_deletePost() is
broken
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 3 02:55:19 GMT 2009
#9447: xmlrpc blogger_deletePost() is broken
--------------------------+-------------------------------------------------
Reporter: scoopnz | Owner: josephscott
Type: defect (bug) | Status: new
Priority: high | Milestone: Unassigned
Component: XML-RPC | Version: 2.7.1
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
hey
I needed to remotely delete posts,
so used xmlrpc to metaWeblog.deletePost
in Wordpress 2.7.1
This failed!
After some debugging i found that function blogger_deletePost()
in xmlrpc.php started args from 1, whereas it should start from 0.
ie, OLD CODE
function blogger_deletePost($args) {
$this->escape($args);
$post_ID = (int) $args[1];
$user_login = $args[2];
$user_pass = $args[3];
$publish = $args[4];
NEW CODE
function blogger_deletePost($args) {
$this->escape($args);
$post_ID = (int) $args[0];
$user_login = $args[1];
$user_pass = $args[2];
$publish = $args[3];
i can whip up a patch, but i dunno where to submit it.
Also: i have to make changes to timestamp stuff in xmlrpc.php
but this may be local to my timezone.
It does strike me that the xmlrpc blogger_deletePost()
would NEVER have worked.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9447>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list