# wp-ultimate-post-grid/1.7.2/vendor/vafpress/classes/wp/util.php

WP Ultimate Post Grid, version 1.7.2. 38 lines.

- Page: https://pluginprobe.com/plugins/wp-ultimate-post-grid/1.7.2/code/vendor/vafpress/classes/wp/util.php
- Raw: https://pluginprobe.com/plugins/wp-ultimate-post-grid/1.7.2/raw/vendor/vafpress/classes/wp/util.php
- Modified: 2015-04-15T08:46:56+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/wp-ultimate-post-grid/1.7.2/code/vendor/vafpress/classes/wp/util.php#L10-L20`.

```php
<?php

class VP_WP_Util
{

	public static function kses_html($html)
	{
		if( function_exists('wp_kses_allowed_html') ) {
			$allowed_post_html = wp_kses_allowed_html( 'post' );
		}
		else {
			global $allowedposttags;
			$allowed_post_html = $allowedposttags;
		}
		$allow = array_merge($allowed_post_html, array(
			'link' => array(
				'href' => true,
				'rel'  => true,
				'type' => true,
			),
			'style' => array(
				'type' => true,
			),
		));
		return wp_kses($html, $allow);
	}

	public static function admin_notice($message, $is_error = false)
	{
		if ($is_error)
			echo '<div class="error">';
		else
			echo '<div class="updated">';

		echo "<p><strong>$message</strong></p></div>";
	}

}
```
