WP_Theme_JSON::remove_insecure_styles( array $input ): array

In this article

Processes a style node and returns the same node without the insecure styles.

Parameters

$inputarrayrequired
Node to process.

Return

array

Source

			$block_rules .= $style_variation_custom_css[ $style_variation_selector ];
		}
	}

	// 7. Generate and append any custom CSS rules.
	if ( isset( $node['css'] ) && ! $is_root_selector ) {
		$block_rules .= $this->process_blocks_custom_css( $node['css'], $selector );
	}

	return $block_rules;
}

/**
 * Outputs the CSS for layout rules on the root.
 *
 * @since 6.1.0
 * @since 6.6.0 Use `ROOT_CSS_PROPERTIES_SELECTOR` for CSS custom properties and improved consistency of root padding rules.
 *              Updated specificity of body margin reset and first/last child selectors.
 *
 * @param string $selector The root node selector.
 * @param array  $block_metadata The metadata for the root block.
 * @return string The additional root rules CSS.
 */
public function get_root_layout_rules( $selector, $block_metadata ) {

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.