@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | /** |
| 314 | 314 | * Verifies the signature of the current request. |
| 315 | 315 | * |
| 316 | - * @return false|array |
|
| 316 | + * @return boolean |
|
| 317 | 317 | */ |
| 318 | 318 | public function verify_xml_rpc_signature() { |
| 319 | 319 | if ( is_null( $this->xmlrpc_verification ) ) { |
@@ -1286,6 +1286,7 @@ discard block |
||
| 1286 | 1286 | * @param String $action The action name. |
| 1287 | 1287 | * @param Integer $user_id The user identifier. |
| 1288 | 1288 | * @param Integer $exp Expiration time in seconds. |
| 1289 | + * @return string |
|
| 1289 | 1290 | */ |
| 1290 | 1291 | public function generate_secrets( $action, $user_id = false, $exp = 600 ) { |
| 1291 | 1292 | if ( false === $user_id ) { |
@@ -2242,7 +2243,7 @@ discard block |
||
| 2242 | 2243 | * |
| 2243 | 2244 | * @param int|false $user_id false: Return the Blog Token. int: Return that user's User Token. |
| 2244 | 2245 | * @param string|false $token_key If provided, check that the token matches the provided input. |
| 2245 | - * @param bool|true $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found. |
|
| 2246 | + * @param boolean $suppress_errors If true, return a falsy value when the token isn't found; When false, return a descriptive WP_Error when the token isn't found. |
|
| 2246 | 2247 | * |
| 2247 | 2248 | * @return object|false |
| 2248 | 2249 | */ |
@@ -2626,7 +2627,7 @@ discard block |
||
| 2626 | 2627 | * Fetches a signed token. |
| 2627 | 2628 | * |
| 2628 | 2629 | * @param object $token the token. |
| 2629 | - * @return WP_Error|string a signed token |
|
| 2630 | + * @return string a signed token |
|
| 2630 | 2631 | */ |
| 2631 | 2632 | public function get_signed_token( $token ) { |
| 2632 | 2633 | if ( ! isset( $token->secret ) || empty( $token->secret ) ) { |