Changeset 44008 for branches/4.2/src/wp-includes/kses.php
- Timestamp:
- 12/12/2018 11:39:39 PM (6 years ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2
- Property svn:mergeinfo changed
/branches/5.0 merged: 43994
- Property svn:mergeinfo changed
-
branches/4.2/src/wp-includes/kses.php
r33360 r44008 180 180 'lang' => true, 181 181 'xml:lang' => true, 182 ),183 'form' => array(184 'action' => true,185 'accept' => true,186 'accept-charset' => true,187 'enctype' => true,188 'method' => true,189 'name' => true,190 'target' => true,191 182 ), 192 183 'h1' => array( … … 609 600 * 610 601 * @since 3.5.0 602 * @since 5.0.1 `form` removed as allowable HTML tag. 611 603 * 612 604 * @param string $context The context for which to retrieve tags. Allowed values are … … 633 625 case 'post': 634 626 /** This filter is documented in wp-includes/kses.php */ 635 return apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 627 $tags = apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 628 629 // 5.0.1 removed the `<form>` tag, allow it if a filter is allowing it's sub-elements `<input>` or `<select>`. 630 if ( ! CUSTOM_TAGS && ! isset( $tags['form'] ) && ( isset( $tags['input'] ) || isset( $tags['select'] ) ) ) { 631 $tags = $allowedposttags; 632 633 $tags['form'] = array( 634 'action' => true, 635 'accept' => true, 636 'accept-charset' => true, 637 'enctype' => true, 638 'method' => true, 639 'name' => true, 640 'target' => true, 641 ); 642 643 /** This filter is documented in wp-includes/kses.php */ 644 $tags = apply_filters( 'wp_kses_allowed_html', $tags, $context ); 645 } 646 647 return $tags; 636 648 637 649 case 'user_description':
Note: See TracChangeset
for help on using the changeset viewer.