@@ -258,7 +258,7 @@ |
||
| 258 | 258 | /** |
| 259 | 259 | * Reset the site logo if the current logo is deleted in the media manager. |
| 260 | 260 | * |
| 261 | - * @param int $site_id |
|
| 261 | + * @param int $post_id |
|
| 262 | 262 | * @uses Site_Logo::remove_site_logo() |
| 263 | 263 | */ |
| 264 | 264 | public function reset_on_attachment_delete( $post_id ) { |
@@ -16,6 +16,9 @@ discard block |
||
| 16 | 16 | public $context; |
| 17 | 17 | public $site; |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param Jetpack_Site $site |
|
| 21 | + */ |
|
| 19 | 22 | function __construct( $site, $post, $context ) { |
| 20 | 23 | $this->post = $post; |
| 21 | 24 | $this->context = $context; |
@@ -508,6 +511,9 @@ discard block |
||
| 508 | 511 | return $suggestions; |
| 509 | 512 | } |
| 510 | 513 | |
| 514 | + /** |
|
| 515 | + * @param string $context |
|
| 516 | + */ |
|
| 511 | 517 | private function format_taxonomy( $taxonomy, $taxonomy_type, $context ) { |
| 512 | 518 | // Permissions |
| 513 | 519 | switch ( $context ) { |
@@ -76,7 +76,6 @@ |
||
| 76 | 76 | * @since 5.8.0 |
| 77 | 77 | * |
| 78 | 78 | * @param string|array $key Query key or keys to remove. |
| 79 | - * @param bool|string $query Optional. A URL to act upon. Defaults to the current search URL. |
|
| 80 | 79 | * |
| 81 | 80 | * @return string New URL query string (unescaped). |
| 82 | 81 | */ |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | * @param array $post_types - other post types. |
| 173 | 173 | * |
| 174 | 174 | * @see hook 'rest_api_allowed_post_types' |
| 175 | - * @return array |
|
| 175 | + * @return string[] |
|
| 176 | 176 | */ |
| 177 | 177 | public function allow_rest_api_types( $post_types ) { |
| 178 | 178 | $post_types[] = self::$post_type_plan; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * @param string $url_orig Original URL. |
| 19 | 19 | * @param array $url_info Pieces of original URL. |
| 20 | 20 | * |
| 21 | - * @return bool |
|
| 21 | + * @return false|string |
|
| 22 | 22 | */ |
| 23 | 23 | function jetpack_no_qtranslate_rest_url_redirect( $url_lang, $url_orig, $url_info ) { |
| 24 | 24 | if ( false !== strpos( $url_info['wp-path'], 'wp-json/jetpack' ) ) { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | * |
| 56 | 56 | * @since 5.6.0 |
| 57 | 57 | * |
| 58 | - * @return object The class instance. |
|
| 58 | + * @return Jetpack_Lazy_Images The class instance. |
|
| 59 | 59 | */ |
| 60 | 60 | public static function instance() { |
| 61 | 61 | if ( is_null( self::$instance ) ) { |
@@ -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 ) ) { |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * Add a callback for WooCommerce product rendering in infinite scroll. |
| 67 | 67 | * |
| 68 | 68 | * @param array $callbacks Array of render callpacks for IS. |
| 69 | - * @return array |
|
| 69 | + * @return string[] |
|
| 70 | 70 | */ |
| 71 | 71 | function jetpack_woocommerce_infinite_scroll_render_callback( $callbacks ) { |
| 72 | 72 | $callbacks[] = 'jetpack_woocommerce_infinite_scroll_render'; |