Changeset 2934 for trunk/wp-includes/kses.php
- Timestamp:
- 10/05/2005 11:58:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/kses.php
r2924 r2934 514 514 } 515 515 516 function kses_init() { 517 global $current_user; 518 519 get_currentuserinfo(); // set $current_user 520 if (current_user_can('unfiltered_html') == false) { 516 function kses_init_filters() { 521 517 add_filter('pre_comment_author', 'wp_filter_kses'); 522 518 add_filter('pre_comment_content', 'wp_filter_kses'); 523 519 add_filter('content_save_pre', 'wp_filter_post_kses'); 524 } 520 } 521 522 function kses_init() { 523 global $current_user; 524 525 get_currentuserinfo(); // set $current_user 526 if (current_user_can('unfiltered_html') == false) 527 kses_init_filters(); 525 528 } 526 529 add_action('init', 'kses_init');
Note: See TracChangeset
for help on using the changeset viewer.