apply_block_core_search_border_styles

The timeline below displays how wordpress function apply_block_core_search_border_styles has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.4

/**
 * This adds CSS rules for a given border property e.g. width or color. It
 * injects rules into the provided wrapper, button and input style arrays for
 * uniform "flat" borders or those with individual sides configured.
 *
 * @param array  $attributes     The block attributes.
 * @param string $property       Border property to generate rule for e.g. width or color.
 * @param array  $wrapper_styles Current collection of wrapper styles.
 * @param array  $button_styles  Current collection of button styles.
 * @param array  $input_styles   Current collection of input styles.
 */
function apply_block_core_search_border_styles($attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles)
{
    apply_block_core_search_border_style($attributes, $property, null, $wrapper_styles, $button_styles, $input_styles);
    apply_block_core_search_border_style($attributes, $property, 'top', $wrapper_styles, $button_styles, $input_styles);
    apply_block_core_search_border_style($attributes, $property, 'right', $wrapper_styles, $button_styles, $input_styles);
    apply_block_core_search_border_style($attributes, $property, 'bottom', $wrapper_styles, $button_styles, $input_styles);
    apply_block_core_search_border_style($attributes, $property, 'left', $wrapper_styles, $button_styles, $input_styles);
}

WordPress Version: 6.1

/**
 * This adds CSS rules for a given border property e.g. width or color. It
 * injects rules into the provided wrapper, button and input style arrays for
 * uniform "flat" borders or those with individual sides configured.
 *
 * @param array  $attributes     The block attributes.
 * @param string $property       Border property to generate rule for e.g. width or color.
 * @param array  $wrapper_styles Current collection of wrapper styles.
 * @param array  $button_styles  Current collection of button styles.
 * @param array  $input_styles   Current collection of input styles.
 *
 * @return void
 */
function apply_block_core_search_border_styles($attributes, $property, &$wrapper_styles, &$button_styles, &$input_styles)
{
    apply_block_core_search_border_style($attributes, $property, null, $wrapper_styles, $button_styles, $input_styles);
    apply_block_core_search_border_style($attributes, $property, 'top', $wrapper_styles, $button_styles, $input_styles);
    apply_block_core_search_border_style($attributes, $property, 'right', $wrapper_styles, $button_styles, $input_styles);
    apply_block_core_search_border_style($attributes, $property, 'bottom', $wrapper_styles, $button_styles, $input_styles);
    apply_block_core_search_border_style($attributes, $property, 'left', $wrapper_styles, $button_styles, $input_styles);
}