]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/kses.php
WordPress 4.4.2
[autoinstalls/wordpress.git] / wp-includes / kses.php
index d34608b89f3eacb482ce1ac65960f3ab101d669a..4827b0de2c88971ba93425f075e9fded06f5de44 100644 (file)
@@ -1580,6 +1580,19 @@ function wp_kses_post( $data ) {
        return wp_kses( $data, 'post' );
 }
 
+/**
+ * Navigates through an array, object, or scalar, and sanitizes content for
+ * allowed HTML tags for post content.
+ *
+ * @since 4.4.2
+ *
+ * @param mixed $value The array or string to filter.
+ * @return mixed $value The filtered content.
+ */
+function wp_kses_post_deep( $data ) {
+       return map_deep( $data, 'wp_kses_post' );
+}
+
 /**
  * Strips all of the HTML in the content.
  *