@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | /** |
| 274 | 274 | * Verifies the signature of the current request. |
| 275 | 275 | * |
| 276 | - * @return false|array |
|
| 276 | + * @return boolean |
|
| 277 | 277 | */ |
| 278 | 278 | public function verify_xml_rpc_signature() { |
| 279 | 279 | if ( is_null( $this->xmlrpc_verification ) ) { |
@@ -637,7 +637,7 @@ discard block |
||
| 637 | 637 | * @param Integer $user_id (optional) the user identifier, defaults to current user. |
| 638 | 638 | * @param String $redirect_url the URL to redirect the user to for processing, defaults to |
| 639 | 639 | * admin_url(). |
| 640 | - * @return WP_Error only in case of a failed user lookup. |
|
| 640 | + * @return \WP_Error|null only in case of a failed user lookup. |
|
| 641 | 641 | */ |
| 642 | 642 | public function connect_user( $user_id = null, $redirect_url = null ) { |
| 643 | 643 | $user = null; |
@@ -1167,6 +1167,7 @@ discard block |
||
| 1167 | 1167 | * @param String $action The action name. |
| 1168 | 1168 | * @param Integer $user_id The user identifier. |
| 1169 | 1169 | * @param Integer $exp Expiration time in seconds. |
| 1170 | + * @return string |
|
| 1170 | 1171 | */ |
| 1171 | 1172 | public function generate_secrets( $action, $user_id = false, $exp = 600 ) { |
| 1172 | 1173 | if ( false === $user_id ) { |
@@ -1660,7 +1661,7 @@ discard block |
||
| 1660 | 1661 | * |
| 1661 | 1662 | * @param int|false $user_id false: Return the Blog Token. int: Return that user's User Token. |
| 1662 | 1663 | * @param string|false $token_key If provided, check that the token matches the provided input. |
| 1663 | - * @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. |
|
| 1664 | + * @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. |
|
| 1664 | 1665 | * |
| 1665 | 1666 | * @return object|false |
| 1666 | 1667 | */ |
@@ -231,7 +231,7 @@ |
||
| 231 | 231 | /** |
| 232 | 232 | * Filter and replace HTML element. |
| 233 | 233 | * |
| 234 | - * @param array $matches Array of matches. |
|
| 234 | + * @param string[] $matches Array of matches. |
|
| 235 | 235 | * @param string $orig_html Original html. Returned if no results are found via $matches processing. |
| 236 | 236 | */ |
| 237 | 237 | private static function dispatch( $matches, $orig_html = null ) { |