PluginProbe
WP Ultimate Post Grid / 2.6.0
WP Ultimate Post Grid v2.6.0
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / vendor / vafpress / classes / wp / util.php

util.php in WP Ultimate Post Grid 2.6.0, at vendor/vafpress/classes/wp/util.php

38 lines 702 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class VP_WP_Util
4 {
5
6 public static function kses_html($html)
7 {
8 if( function_exists('wp_kses_allowed_html') ) {
9 $allowed_post_html = wp_kses_allowed_html( 'post' );
10 }
11 else {
12 global $allowedposttags;
13 $allowed_post_html = $allowedposttags;
14 }
15 $allow = array_merge($allowed_post_html, array(
16 'link' => array(
17 'href' => true,
18 'rel' => true,
19 'type' => true,
20 ),
21 'style' => array(
22 'type' => true,
23 ),
24 ));
25 return wp_kses($html, $allow);
26 }
27
28 public static function admin_notice($message, $is_error = false)
29 {
30 if ($is_error)
31 echo '<div class="error">';
32 else
33 echo '<div class="updated">';
34
35 echo "<p><strong>$message</strong></p></div>";
36 }
37
38 }