@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | * Only enqueue block assets when needed. |
463 | 463 | * |
464 | 464 | * @param string $type Slug of the block. |
465 | - * @param array $script_dependencies Script dependencies. Will be merged with automatically |
|
465 | + * @param string[] $script_dependencies Script dependencies. Will be merged with automatically |
|
466 | 466 | * detected script dependencies from the webpack build. |
467 | 467 | * |
468 | 468 | * @return void |
@@ -836,6 +836,9 @@ discard block |
||
836 | 836 | return Jetpack_Plan::supports( BLOCK_NAME ); |
837 | 837 | } |
838 | 838 | |
839 | + /** |
|
840 | + * @param string $callback |
|
841 | + */ |
|
839 | 842 | public static function register_block_with_availability( $block_name, $callback, $availability ) { |
840 | 843 | $availability_check_result = self::is_block_available( $block_name, $availability ); |
841 | 844 | if ( is_bool( $availability_check_result ) && $availability_check_result ) { |