Changeset 54527 for trunk/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 11:29:55 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r54489 r54527 2500 2500 } 2501 2501 2502 $filter_comment = false; 2503 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2504 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2505 } 2506 2507 if ( $filter_comment ) { 2508 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2509 } 2510 2502 2511 // Escape data pulled from DB. 2503 2512 $comment = wp_slash( $comment ); … … 2509 2518 2510 2519 $commentarr = wp_filter_comment( $commentarr ); 2520 2521 if ( $filter_comment ) { 2522 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2523 } 2511 2524 2512 2525 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.