wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_normalize_state_style_for_css_output › WordPress Function

Since7.1.0
Deprecatedn/a
wp_normalize_state_style_for_css_output ( $style )
Parameters:
  • (array) $style State style object.
    Required: Yes
Returns:
  • (array) Normalized state style object.
Defined at:
Codex:

Normalizes a state style object before generating CSS declarations.



Source

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;
}