@@ -10,6 +10,9 @@ discard block |
||
| 10 | 10 | use Automattic\Jetpack\Status; |
| 11 | 11 | |
| 12 | 12 | |
| 13 | +/** |
|
| 14 | + * @param string $slug |
|
| 15 | + */ |
|
| 13 | 16 | function jetpack_registration_checks( $slug, $args = array() ) { |
| 14 | 17 | if ( isset( $args['version_requirements'] ) |
| 15 | 18 | && ! Jetpack_Gutenberg::is_gutenberg_version_available( $args['version_requirements'], $slug ) ) { |
@@ -55,7 +58,7 @@ discard block |
||
| 55 | 58 | * |
| 56 | 59 | * @since X.X.X |
| 57 | 60 | * |
| 58 | - * @return Boolean Whether or not the registration was successful. |
|
| 61 | + * @return boolean|null Whether or not the registration was successful. |
|
| 59 | 62 | */ |
| 60 | 63 | function jetpack_register_extension( $slug, $args = array() ) { |
| 61 | 64 | |
@@ -614,7 +617,7 @@ discard block |
||
| 614 | 617 | * Only enqueue block assets when needed. |
| 615 | 618 | * |
| 616 | 619 | * @param string $type Slug of the block. |
| 617 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
| 620 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
| 618 | 621 | * detected script dependencies from the webpack build. |
| 619 | 622 | * |
| 620 | 623 | * @return void |
@@ -968,10 +971,10 @@ discard block |
||
| 968 | 971 | * @since 8.3.0 |
| 969 | 972 | * |
| 970 | 973 | * @param string $url URL saved as an attribute in block. |
| 971 | - * @param array $allowed Array of allowed hosts for that block, or regexes to check against. |
|
| 974 | + * @param string[] $allowed Array of allowed hosts for that block, or regexes to check against. |
|
| 972 | 975 | * @param bool $is_regex Array of regexes matching the URL that could be used in block. |
| 973 | 976 | * |
| 974 | - * @return bool|string |
|
| 977 | + * @return false|string |
|
| 975 | 978 | */ |
| 976 | 979 | public static function validate_block_embed_url( $url, $allowed = array(), $is_regex = false ) { |
| 977 | 980 | if ( |