diff --git a/serendipity_event_xmlrpc/ChangeLog b/serendipity_event_xmlrpc/ChangeLog index 0eaf2248..31d20bde 100644 --- a/serendipity_event_xmlrpc/ChangeLog +++ b/serendipity_event_xmlrpc/ChangeLog @@ -1,4 +1,7 @@ # +Version 1.58: + * Added stub wp.deletePage dummy API function + Version 1.57: * Added stub wp.editPage dummy API function diff --git a/serendipity_event_xmlrpc/serendipity_event_xmlrpc.php b/serendipity_event_xmlrpc/serendipity_event_xmlrpc.php index 1e658cd7..7b6cf990 100644 --- a/serendipity_event_xmlrpc/serendipity_event_xmlrpc.php +++ b/serendipity_event_xmlrpc/serendipity_event_xmlrpc.php @@ -25,7 +25,7 @@ class serendipity_event_xmlrpc extends serendipity_event $propbag->add('description', PLUGIN_EVENT_XMLRPC_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Serendipity Team'); - $propbag->add('version', '1.57'); + $propbag->add('version', '1.58'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', diff --git a/serendipity_event_xmlrpc/serendipity_xmlrpc.inc.php b/serendipity_event_xmlrpc/serendipity_xmlrpc.inc.php index 06d01812..4c2fe37c 100644 --- a/serendipity_event_xmlrpc/serendipity_xmlrpc.inc.php +++ b/serendipity_event_xmlrpc/serendipity_xmlrpc.inc.php @@ -114,6 +114,8 @@ $dispatches = array( array('function' => 'wp_getPageList'), 'wp.editPage' => array('function' => 'wp_editPage'), + 'wp.deletePage' => + array('function' => 'wp_deletePage'), /* BLOGGER API */ 'blogger.getUsersBlogs' => @@ -483,6 +485,13 @@ function wp_editPage($message) { return new XML_RPC_Value($return, 'boolean'); } +function wp_deletePage($message) { + global $serendipity; + // TODO: stub + $return = true; + return new XML_RPC_Value($return, 'boolean'); +} + // Get an array of all the pages on a blog. Just the minimum details, lighter than wp.getPages. function wp_getPageList($message) { global $serendipity;