Changeset 43997
- Timestamp:
- 12/12/2018 11:16:14 PM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/branches/5.0 merged: 43994
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-includes/kses.php
r42861 r43997 184 184 'lang' => true, 185 185 'xml:lang' => true, 186 ),187 'form' => array(188 'action' => true,189 'accept' => true,190 'accept-charset' => true,191 'enctype' => true,192 'method' => true,193 'name' => true,194 'target' => true,195 186 ), 196 187 'h1' => array( … … 611 602 * 612 603 * @since 3.5.0 604 * @since 5.0.1 `form` removed as allowable HTML tag. 613 605 * 614 606 * @global array $allowedposttags … … 639 631 case 'post': 640 632 /** This filter is documented in wp-includes/kses.php */ 641 return apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 633 $tags = apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 634 635 // 5.0.1 removed the `<form>` tag, allow it if a filter is allowing it's sub-elements `<input>` or `<select>`. 636 if ( ! CUSTOM_TAGS && ! isset( $tags['form'] ) && ( isset( $tags['input'] ) || isset( $tags['select'] ) ) ) { 637 $tags = $allowedposttags; 638 639 $tags['form'] = array( 640 'action' => true, 641 'accept' => true, 642 'accept-charset' => true, 643 'enctype' => true, 644 'method' => true, 645 'name' => true, 646 'target' => true, 647 ); 648 649 /** This filter is documented in wp-includes/kses.php */ 650 $tags = apply_filters( 'wp_kses_allowed_html', $tags, $context ); 651 } 652 653 return $tags; 642 654 643 655 case 'user_description':
Note: See TracChangeset
for help on using the changeset viewer.