Make WordPress Core

Ticket #63786: 63786-kses-additional-html-tags.diff

File 63786-kses-additional-html-tags.diff, 706 bytes (added by sachinrajcp123, 10 months ago)
  • wp-includes/kses.php

    diff --git a/wp-includes/kses.php b/wp-includes/kses.php
    index abc1111..def2222 100644
    a b function wp_kses_allowed_html( $context = '', $allowed_protocols = array() ) { 
    18001800
    18011801        if ( 'post' === $context ) {
    18021802                $allowed_tags = array_merge( $allowed_tags, array(
     1803                        // New HTML5 elements.
     1804                        'data'       => array(
     1805                                'value' => true,
     1806                        ),
     1807                        'datalist'   => array(),
     1808                        'dialog'     => array(
     1809                                'open' => true,
     1810                        ),
     1811                        'picture'    => array(),
     1812                        'progress'   => array(
     1813                                'value' => true,
     1814                                'max'   => true,
     1815                        ),
     1816                        'search'     => array(),
     1817                        'time'       => array(
     1818                                'datetime' => true,
     1819                        ),
    18031820                ) );
    18041821        }
    18051822