equal
deleted
inserted
replaced
16 * |
16 * |
17 * @param WP_Block_Type $block_type Block type. |
17 * @param WP_Block_Type $block_type Block type. |
18 * @param string $feature_set Name of block support feature set.. |
18 * @param string $feature_set Name of block support feature set.. |
19 * @param string $feature Optional name of individual feature to check. |
19 * @param string $feature Optional name of individual feature to check. |
20 * |
20 * |
21 * @return boolean Whether to serialize block support styles & classes. |
21 * @return bool Whether to serialize block support styles & classes. |
22 */ |
22 */ |
23 function wp_should_skip_block_supports_serialization( $block_type, $feature_set, $feature = null ) { |
23 function wp_should_skip_block_supports_serialization( $block_type, $feature_set, $feature = null ) { |
24 if ( ! is_object( $block_type ) || ! $feature_set ) { |
24 if ( ! is_object( $block_type ) || ! $feature_set ) { |
25 return false; |
25 return false; |
26 } |
26 } |