Changeset 44293
- Timestamp:
- 12/18/2018 04:45:54 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43994
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/kses.php
r44207 r44293 187 187 'lang' => true, 188 188 'xml:lang' => true, 189 ),190 'form' => array(191 'action' => true,192 'accept' => true,193 'accept-charset' => true,194 'enctype' => true,195 'method' => true,196 'name' => true,197 'target' => true,198 189 ), 199 190 'h1' => array( … … 825 816 * 826 817 * @since 3.5.0 818 * @since 5.0.1 `form` removed as allowable HTML tag. 827 819 * 828 820 * @global array $allowedposttags … … 853 845 case 'post': 854 846 /** This filter is documented in wp-includes/kses.php */ 855 return apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 847 $tags = apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context ); 848 849 // 5.0.1 removed the `<form>` tag, allow it if a filter is allowing it's sub-elements `<input>` or `<select>`. 850 if ( ! CUSTOM_TAGS && ! isset( $tags['form'] ) && ( isset( $tags['input'] ) || isset( $tags['select'] ) ) ) { 851 $tags = $allowedposttags; 852 853 $tags['form'] = array( 854 'action' => true, 855 'accept' => true, 856 'accept-charset' => true, 857 'enctype' => true, 858 'method' => true, 859 'name' => true, 860 'target' => true, 861 ); 862 863 /** This filter is documented in wp-includes/kses.php */ 864 $tags = apply_filters( 'wp_kses_allowed_html', $tags, $context ); 865 } 866 867 return $tags; 856 868 857 869 case 'user_description':
Note: See TracChangeset
for help on using the changeset viewer.