Changeset 44001 for branches/4.6/src/wp-includes/kses.php
- Timestamp:
- 12/12/2018 11:26:46 PM (7 years ago)
- Location:
- branches/4.6
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/kses.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
- Property svn:mergeinfo changed
/branches/5.0 merged: 43994
- Property svn:mergeinfo changed
-
branches/4.6/src/wp-includes/kses.php
r38121 r44001 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( … … 613 604 * 614 605 * @since 3.5.0 606 * @since 5.0.1 `form` removed as allowable HTML tag. 615 607 * 616 608 * @global array $allowedposttags … … 642 634 case 'post': 643 635 /** This filter is documented in wp-includes/kses.php */ 644 return apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 636 $tags = apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 637 638 // 5.0.1 removed the `<form>` tag, allow it if a filter is allowing it's sub-elements `<input>` or `<select>`. 639 if ( ! CUSTOM_TAGS && ! isset( $tags['form'] ) && ( isset( $tags['input'] ) || isset( $tags['select'] ) ) ) { 640 $tags = $allowedposttags; 641 642 $tags['form'] = array( 643 'action' => true, 644 'accept' => true, 645 'accept-charset' => true, 646 'enctype' => true, 647 'method' => true, 648 'name' => true, 649 'target' => true, 650 ); 651 652 /** This filter is documented in wp-includes/kses.php */ 653 $tags = apply_filters( 'wp_kses_allowed_html', $tags, $context ); 654 } 655 656 return $tags; 645 657 646 658 case 'user_description':
Note: See TracChangeset
for help on using the changeset viewer.