Added stub wp.deletePage dummy API function

This commit is contained in:
Garvin Hicking 2016-08-15 10:09:34 +02:00
parent 55f16d5792
commit 2b9fdb4619
3 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,7 @@
#
Version 1.58:
* Added stub wp.deletePage dummy API function
Version 1.57:
* Added stub wp.editPage dummy API function

View file

@ -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',

View file

@ -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;