@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | * Only enqueue block assets when needed. |
| 584 | 584 | * |
| 585 | 585 | * @param string $type Slug of the block. |
| 586 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
| 586 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
| 587 | 587 | * detected script dependencies from the webpack build. |
| 588 | 588 | * |
| 589 | 589 | * @return void |
@@ -837,7 +837,7 @@ discard block |
||
| 837 | 837 | * |
| 838 | 838 | * @param string $slug Block slug. |
| 839 | 839 | * @param array $attr Block attributes. |
| 840 | - * @param array $extra Potential extra classes you may want to provide. |
|
| 840 | + * @param string[] $extra Potential extra classes you may want to provide. |
|
| 841 | 841 | * |
| 842 | 842 | * @return string $classes List of CSS classes for a block. |
| 843 | 843 | */ |
@@ -934,10 +934,10 @@ discard block |
||
| 934 | 934 | * @since 8.3.0 |
| 935 | 935 | * |
| 936 | 936 | * @param string $url URL saved as an attribute in block. |
| 937 | - * @param array $allowed Array of allowed hosts for that block, or regexes to check against. |
|
| 937 | + * @param string[] $allowed Array of allowed hosts for that block, or regexes to check against. |
|
| 938 | 938 | * @param bool $is_regex Array of regexes matching the URL that could be used in block. |
| 939 | 939 | * |
| 940 | - * @return bool|string |
|
| 940 | + * @return false|string |
|
| 941 | 941 | */ |
| 942 | 942 | public static function validate_block_embed_url( $url, $allowed = array(), $is_regex = false ) { |
| 943 | 943 | if ( |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | /** |
| 106 | 106 | * Returns an instance of the Jetpack object. |
| 107 | 107 | * |
| 108 | - * @return Automattic\Jetpack |
|
| 108 | + * @return Jetpack |
|
| 109 | 109 | */ |
| 110 | 110 | public function get_jetpack() { |
| 111 | 111 | return Jetpack::init(); |
@@ -62,6 +62,10 @@ |
||
| 62 | 62 | return $query->is_main_query() && $query->is_search(); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param double $duration |
|
| 67 | + * @param boolean $was_jetpack_search |
|
| 68 | + */ |
|
| 65 | 69 | private function record_query_time( $duration, $was_jetpack_search ) { |
| 66 | 70 | $this->stats[] = array( $was_jetpack_search, (int) ( $duration * 1000 ) ); |
| 67 | 71 | } |
@@ -35,6 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * Singleton implementation |
| 37 | 37 | * |
| 38 | + * @param string|false $ip_address |
|
| 38 | 39 | * @return object |
| 39 | 40 | */ |
| 40 | 41 | public static function instance( $ip_address ) { |
@@ -348,6 +349,9 @@ discard block |
||
| 348 | 349 | return $contents; |
| 349 | 350 | } |
| 350 | 351 | |
| 352 | + /** |
|
| 353 | + * @param string $message |
|
| 354 | + */ |
|
| 351 | 355 | function display_page( $title, $message, $back_button = false, $recovery_form = false ) { |
| 352 | 356 | |
| 353 | 357 | if ( ! headers_sent() ) { |
@@ -326,7 +326,7 @@ |
||
| 326 | 326 | * |
| 327 | 327 | * @param string $url The URL to parse. |
| 328 | 328 | * @param integer $component Retrieve specific URL component. |
| 329 | - * @return mixed Result of parse_url |
|
| 329 | + * @return string|false Result of parse_url |
|
| 330 | 330 | */ |
| 331 | 331 | function jetpack_photon_parse_url( $url, $component = -1 ) { |
| 332 | 332 | _deprecated_function( 'jetpack_photon_parse_url', 'jetpack-7.8.0', 'wp_parse_url' ); |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | * |
| 379 | 379 | * @since 8.0.0 |
| 380 | 380 | * |
| 381 | - * @param array $url The parsed URL of the shortcode. |
|
| 381 | + * @param string|false $url The parsed URL of the shortcode. |
|
| 382 | 382 | * |
| 383 | 383 | * @return array|false The query args of the URL, or false. |
| 384 | 384 | */ |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | * |
| 453 | 453 | * @param array $query_args The query args of the URL. |
| 454 | 454 | * |
| 455 | - * @return array The width and height of the shortcode. |
|
| 455 | + * @return integer[] The width and height of the shortcode. |
|
| 456 | 456 | */ |
| 457 | 457 | function jetpack_shortcode_youtube_dimensions( $query_args ) { |
| 458 | 458 | global $content_width; |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | * @param string $url URL of the content to be embedded. |
| 146 | 146 | * @param array $atts Shortcode attributes. |
| 147 | 147 | * |
| 148 | - * @return array $params Array of parameters to be used in Instagram query. |
|
| 148 | + * @return string $params Array of parameters to be used in Instagram query. |
|
| 149 | 149 | */ |
| 150 | 150 | function jetpack_instagram_get_allowed_parameters( $url, $atts = array() ) { |
| 151 | 151 | global $content_width; |
@@ -217,7 +217,7 @@ |
||
| 217 | 217 | * Render a slide |
| 218 | 218 | * |
| 219 | 219 | * @param array $media Media information. |
| 220 | - * @param array $index Index of the slide, first slide will be displayed by default, others hidden. |
|
| 220 | + * @param integer $index Index of the slide, first slide will be displayed by default, others hidden. |
|
| 221 | 221 | * |
| 222 | 222 | * @return string |
| 223 | 223 | */ |