Add a proper return description for the `wp_xmlrpc_server->addTwoNumbers()` method.
See [30181]. See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@32557 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
206debf59e
commit
644b0e27a3
|
@ -188,7 +188,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @return string
|
||||
* @return string Hello string response.
|
||||
*/
|
||||
public function sayHello() {
|
||||
return 'Hello!';
|
||||
|
@ -202,10 +202,10 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
* @param array $args {
|
||||
* Method parameters.
|
||||
*
|
||||
* @type int $number1 A number to add.
|
||||
* @type int $number2 A second number to add.
|
||||
* @type int $number1 A number to add.
|
||||
* @type int $number2 A second number to add.
|
||||
* }
|
||||
* @return int
|
||||
* @return int Sum of the two given numbers.
|
||||
*/
|
||||
public function addTwoNumbers( $args ) {
|
||||
$number1 = $args[0];
|
||||
|
|
Loading…
Reference in New Issue