Changeset 44013
- Timestamp:
- 12/12/2018 11:51:06 PM (7 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
- Property svn:mergeinfo changed
/branches/5.0 merged: 43994
- Property svn:mergeinfo changed
-
branches/4.1/src/wp-includes/kses.php
r33380 r44013 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( … … 608 599 * 609 600 * @since 3.5.0 601 * @since 5.0.1 `form` removed as allowable HTML tag. 610 602 * 611 603 * @param string $context The context for which to retrieve tags. Allowed values are … … 632 624 case 'post': 633 625 /** This filter is documented in wp-includes/kses.php */ 634 return apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 635 break; 626 $tags = apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 627 628 // 5.0.1 removed the `<form>` tag, allow it if a filter is allowing it's sub-elements `<input>` or `<select>`. 629 if ( ! CUSTOM_TAGS && ! isset( $tags['form'] ) && ( isset( $tags['input'] ) || isset( $tags['select'] ) ) ) { 630 $tags = $allowedposttags; 631 632 $tags['form'] = array( 633 'action' => true, 634 'accept' => true, 635 'accept-charset' => true, 636 'enctype' => true, 637 'method' => true, 638 'name' => true, 639 'target' => true, 640 ); 641 642 /** This filter is documented in wp-includes/kses.php */ 643 $tags = apply_filters( 'wp_kses_allowed_html', $tags, $context ); 644 } 645 646 return $tags; 636 647 case 'user_description': 637 648 case 'pre_user_description':
Note: See TracChangeset
for help on using the changeset viewer.