P 0 ` @z @ ` @ И 0 @z ` @ @ И @z @ @ @ И 0 @z . % `; 2 0 @ И 0 @z . p, `; 2 @ 0 @ И @z . - `; 2 @ 0 @ И 0 @z @ ` p ` п 0 ` @z @ ` ` @ И P S ` @ S 0 p P 0 ` E " 0 E p P 0 ` 0c d p p) X)) ^ X)) p) @Y = =# =# @A# l# p c o p p p p , o ^ o ) o o d o o 0 $ # % @) 6& @ & % G @>& ' % % @j& % % l& τ 0& & D& % & G& 0τ τ % & 0& PR΄ & pO& p& % *& @j& Q΄ % I& Pτ @8& 0% & Pτ G& % @_& ΄ % % pτ p% τ @R& @% d& T΄ & Ђτ ΄ ' τ 6& x- X, pP, 8- xф h@- 0= @- x- (I @, D, - p - 0- x, , Hф , - h, - , , @ф y- ф - x- (, H, , p, H, - @, `, `, h- , - 0W @x- , `- X, X, `, - - xy- ф p, w, 0I , x- x, - I `P6 x $styles[] = sprintf( 'border-color: %s;', $border_color ); } } // Collect classes and styles. $attributes = array(); if ( ! empty( $classes ) ) { $attributes['class'] = implode( ' ', $classes ); } if ( ! empty( $styles ) ) { $attributes['style'] = implode( ' ', $styles ); } return $attributes; } /** * Checks whether the current block type supports the border feature requested. * * If the `__experimentalBorder` support flag is a boolean `true` all border * support features are available. Otherwise, the specific feature's support * flag nested under `experimentalBorder` must be enabled for the feature * to be opted into. * * @since 5.8.0 * @access private * * @param WP_Block_Type $block_type Block type to check for support. * @param string $feature Name of the feature to check support for. * @param mixed $default_value Fallback value for feature support, defaults to false. * @return bool Whether the feature is supported. */ function wp_has_border_feature_support( $block_type, $feature, $default_value = false ) { // Check if all border support features have been opted into via `"__experimentalBorder": true`. if ( property_exists( $block_type, 'supports' ) && ( true === _wp_array_get( $block_type->supports, array( '__experimentalBorder' ), $default_value ) ) ) { return true; } // Check if the specific feature has been opted into individually // via nested flag under `__experimentalBorder`. return block_has_support( $block_type, array( '__experimentalBorder', $feature ), $default_value ); } // Register the block support. WP_Block_Supports::get_instance()->register( 'border', array( 'register_attribute' => 'wp_register_border_support', 'apply' => 'wp_apply_border_support', ) );