Added stub wp.deletePage dummy API function
This commit is contained in:
parent
55f16d5792
commit
2b9fdb4619
|
@ -1,4 +1,7 @@
|
||||||
#
|
#
|
||||||
|
Version 1.58:
|
||||||
|
* Added stub wp.deletePage dummy API function
|
||||||
|
|
||||||
Version 1.57:
|
Version 1.57:
|
||||||
* Added stub wp.editPage dummy API function
|
* Added stub wp.editPage dummy API function
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ class serendipity_event_xmlrpc extends serendipity_event
|
||||||
$propbag->add('description', PLUGIN_EVENT_XMLRPC_DESC);
|
$propbag->add('description', PLUGIN_EVENT_XMLRPC_DESC);
|
||||||
$propbag->add('stackable', false);
|
$propbag->add('stackable', false);
|
||||||
$propbag->add('author', 'Serendipity Team');
|
$propbag->add('author', 'Serendipity Team');
|
||||||
$propbag->add('version', '1.57');
|
$propbag->add('version', '1.58');
|
||||||
$propbag->add('requirements', array(
|
$propbag->add('requirements', array(
|
||||||
'serendipity' => '0.8',
|
'serendipity' => '0.8',
|
||||||
'smarty' => '2.6.7',
|
'smarty' => '2.6.7',
|
||||||
|
|
|
@ -114,6 +114,8 @@ $dispatches = array(
|
||||||
array('function' => 'wp_getPageList'),
|
array('function' => 'wp_getPageList'),
|
||||||
'wp.editPage' =>
|
'wp.editPage' =>
|
||||||
array('function' => 'wp_editPage'),
|
array('function' => 'wp_editPage'),
|
||||||
|
'wp.deletePage' =>
|
||||||
|
array('function' => 'wp_deletePage'),
|
||||||
|
|
||||||
/* BLOGGER API */
|
/* BLOGGER API */
|
||||||
'blogger.getUsersBlogs' =>
|
'blogger.getUsersBlogs' =>
|
||||||
|
@ -483,6 +485,13 @@ function wp_editPage($message) {
|
||||||
return new XML_RPC_Value($return, 'boolean');
|
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.
|
// Get an array of all the pages on a blog. Just the minimum details, lighter than wp.getPages.
|
||||||
function wp_getPageList($message) {
|
function wp_getPageList($message) {
|
||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
Loading…
Reference in a new issue