wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_normalize_state_style_for_css_output › WordPress Function

Desde7.1.0
Obsoleton/a
› wp_normalize_state_style_for_css_output ( $style )
Parâmetros:
  • (array) $style State style object.
    Required: Yes
Retorna:
  • (array) Normalized state style object.
Definido em:
Codex:

Normalizes a state style object before generating CSS declarations.



Fonte

function wp_normalize_state_style_for_css_output( $style ) {
	// Layout is processed separately by wp_render_layout_support_flag(), so we remove it before declaration generation.
	unset( $style['layout'] );
	$style = wp_normalize_state_preset_vars( $style );
	return $style;
}