wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_skip_border_serialization › WordPress Function

Since5.8.0
已弃用6.0.0
wp_skip_border_serialization ( $block_type )
访问:
  • private
参数:
  • (WP_Block_Type) $block_type Block type.
    Required: Yes
查看:
返回:
  • (bool) Whether serialization of the current block's border properties should occur.
定义在:
文档:

Checks whether serialization of the current block's border properties should occur.



源码

function wp_skip_border_serialization( $block_type ) {
	_deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' );

	$border_support = isset( $block_type->supports['__experimentalBorder'] )
		? $block_type->supports['__experimentalBorder']
		: false;

	return is_array( $border_support ) &&
		array_key_exists( '__experimentalSkipSerialization', $border_support ) &&
		$border_support['__experimentalSkipSerialization'];
}