# gutenberg/23.5.0/lib/compat/wordpress-7.0/kses.php

Gutenberg, version 23.5.0. 23 lines.

- Page: https://pluginprobe.com/plugins/gutenberg/23.5.0/code/lib/compat/wordpress-7.0/kses.php
- Raw: https://pluginprobe.com/plugins/gutenberg/23.5.0/raw/lib/compat/wordpress-7.0/kses.php
- Modified: 2026-02-04T14:57:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gutenberg/23.5.0/code/lib/compat/wordpress-7.0/kses.php#L10-L20`.

```php
<?php
/**
 * Compatibility shims for KSES (content filtering) for WordPress 7.0.
 *
 * @package gutenberg
 */

/**
 * Add 'display' to the list of safe CSS properties.
 * This is needed for viewport visibility support.
 *
 * @param array $attr List of allowed CSS attributes.
 * @return array Modified list of allowed CSS attributes.
 */
function gutenberg_add_display_to_safe_style_css( $attr ) {
	if ( ! in_array( 'display', $attr, true ) ) {
		$attr[] = 'display';
	}

	return $attr;
}
add_filter( 'safe_style_css', 'gutenberg_add_display_to_safe_style_css' );

```
