Changeset 44003 for branches/4.4/src/wp-includes/kses.php
- Timestamp:
- 12/12/2018 11:35:11 PM (5 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
- Property svn:mergeinfo changed
/branches/5.0 merged: 43994
- Property svn:mergeinfo changed
-
branches/4.4/src/wp-includes/kses.php
r36430 r44003 183 183 'lang' => true, 184 184 'xml:lang' => true, 185 ),186 'form' => array(187 'action' => true,188 'accept' => true,189 'accept-charset' => true,190 'enctype' => true,191 'method' => true,192 'name' => true,193 'target' => true,194 185 ), 195 186 '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 … … 640 632 case 'post': 641 633 /** This filter is documented in wp-includes/kses.php */ 642 return apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 634 $tags = apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 635 636 // 5.0.1 removed the `<form>` tag, allow it if a filter is allowing it's sub-elements `<input>` or `<select>`. 637 if ( ! CUSTOM_TAGS && ! isset( $tags['form'] ) && ( isset( $tags['input'] ) || isset( $tags['select'] ) ) ) { 638 $tags = $allowedposttags; 639 640 $tags['form'] = array( 641 'action' => true, 642 'accept' => true, 643 'accept-charset' => true, 644 'enctype' => true, 645 'method' => true, 646 'name' => true, 647 'target' => true, 648 ); 649 650 /** This filter is documented in wp-includes/kses.php */ 651 $tags = apply_filters( 'wp_kses_allowed_html', $tags, $context ); 652 } 653 654 return $tags; 643 655 644 656 case 'user_description':
Note: See TracChangeset
for help on using the changeset viewer.