Changeset 54545 for branches/5.9/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:39:34 PM (3 years ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
- Property svn:mergeinfo changed
/trunk merged: 54397,54521-54530,54541
- Property svn:mergeinfo changed
-
branches/5.9/src/wp-includes/comment.php
r52332 r54545 2487 2487 } 2488 2488 2489 $filter_comment = false; 2490 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2491 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2492 } 2493 2494 if ( $filter_comment ) { 2495 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2496 } 2497 2489 2498 // Escape data pulled from DB. 2490 2499 $comment = wp_slash( $comment ); … … 2496 2505 2497 2506 $commentarr = wp_filter_comment( $commentarr ); 2507 2508 if ( $filter_comment ) { 2509 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2510 } 2498 2511 2499 2512 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.