Changeset 21082 for branches/3.3/wp-includes/kses.php
- Timestamp:
- 06/15/2012 04:53:15 PM (14 years ago)
- File:
-
- 1 edited
-
branches/3.3/wp-includes/kses.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/wp-includes/kses.php
r20541 r21082 1316 1316 */ 1317 1317 function kses_init_filters() { 1318 // Normal filtering. 1319 add_filter('pre_comment_content', 'wp_filter_kses'); 1318 // Normal filtering 1320 1319 add_filter('title_save_pre', 'wp_filter_kses'); 1320 1321 // Comment filtering 1322 if ( current_user_can( 'unfiltered_html' ) ) 1323 add_filter( 'pre_comment_content', 'wp_filter_post_kses' ); 1324 else 1325 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 1321 1326 1322 1327 // Post filtering … … 1339 1344 */ 1340 1345 function kses_remove_filters() { 1341 // Normal filtering. 1342 remove_filter('pre_comment_content', 'wp_filter_kses'); 1346 // Normal filtering 1343 1347 remove_filter('title_save_pre', 'wp_filter_kses'); 1348 1349 // Comment filtering 1350 remove_filter( 'pre_comment_content', 'wp_filter_post_kses' ); 1351 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 1344 1352 1345 1353 // Post filtering
Note: See TracChangeset
for help on using the changeset viewer.