@@ -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 ) ) { |
@@ -1029,6 +1029,7 @@ discard block |
||
1029 | 1029 | * @param String $action The action name. |
1030 | 1030 | * @param Integer $user_id The user identifier. |
1031 | 1031 | * @param Integer $exp Expiration time in seconds. |
1032 | + * @return string |
|
1032 | 1033 | */ |
1033 | 1034 | public function generate_secrets( $action, $user_id = false, $exp = 600 ) { |
1034 | 1035 | $callable = $this->get_secret_callable(); |
@@ -1419,7 +1420,7 @@ discard block |
||
1419 | 1420 | * |
1420 | 1421 | * @param int|false $user_id false: Return the Blog Token. int: Return that user's User Token. |
1421 | 1422 | * @param string|false $token_key If provided, check that the token matches the provided input. |
1422 | - * @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. |
|
1423 | + * @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. |
|
1423 | 1424 | * |
1424 | 1425 | * @return object|false |
1425 | 1426 | */ |
@@ -36,6 +36,9 @@ |
||
36 | 36 | add_action( 'init', array( &$this, 'action_init' ) ); |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param string $file |
|
41 | + */ |
|
39 | 42 | function wpcom_static_url($file) { |
40 | 43 | $i = hexdec( substr( md5( $file ), -1 ) ) % 2; |
41 | 44 | return 'https://s' . $i . '.wp.com' . $file; |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | * Only enqueue block assets when needed. |
457 | 457 | * |
458 | 458 | * @param string $type Slug of the block. |
459 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
459 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
460 | 460 | * detected script dependencies from the webpack build. |
461 | 461 | * |
462 | 462 | * @return void |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | * |
698 | 698 | * @param string $slug Block slug. |
699 | 699 | * @param array $attr Block attributes. |
700 | - * @param array $extra Potential extra classes you may want to provide. |
|
700 | + * @param string[] $extra Potential extra classes you may want to provide. |
|
701 | 701 | * |
702 | 702 | * @return string $classes List of CSS classes for a block. |
703 | 703 | */ |