Added wp.newPage
This commit is contained in:
parent
fb33bf44dd
commit
7cead4b526
|
@ -1,4 +1,7 @@
|
|||
#
|
||||
Version 1.59:
|
||||
* Added stub wp.newPage dummy API function
|
||||
|
||||
Version 1.58:
|
||||
* Added stub wp.deletePage dummy API function
|
||||
|
||||
|
|
|
@ -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.58');
|
||||
$propbag->add('version', '1.59');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '0.8',
|
||||
'smarty' => '2.6.7',
|
||||
|
|
|
@ -114,6 +114,8 @@ $dispatches = array(
|
|||
array('function' => 'wp_getPageList'),
|
||||
'wp.editPage' =>
|
||||
array('function' => 'wp_editPage'),
|
||||
'wp.newPage' =>
|
||||
array('function' => 'wp_newPage'),
|
||||
'wp.deletePage' =>
|
||||
array('function' => 'wp_deletePage'),
|
||||
|
||||
|
@ -485,6 +487,13 @@ function wp_editPage($message) {
|
|||
return new XML_RPC_Value($return, 'boolean');
|
||||
}
|
||||
|
||||
function wp_newPage($message) {
|
||||
global $serendipity;
|
||||
// TODO: stub
|
||||
$return = true;
|
||||
return new XML_RPC_Value($return, 'boolean');
|
||||
}
|
||||
|
||||
function wp_deletePage($message) {
|
||||
global $serendipity;
|
||||
// TODO: stub
|
||||
|
|
Loading…
Reference in a new issue