Changeset 54548 for branches/5.8/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:46:39 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 54397,54521-54530,54541
- Property svn:mergeinfo changed
-
branches/5.8/src/wp-includes/comment.php
r50641 r54548 2467 2467 } 2468 2468 2469 $filter_comment = false; 2470 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2471 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2472 } 2473 2474 if ( $filter_comment ) { 2475 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2476 } 2477 2469 2478 // Escape data pulled from DB. 2470 2479 $comment = wp_slash( $comment ); … … 2476 2485 2477 2486 $commentarr = wp_filter_comment( $commentarr ); 2487 2488 if ( $filter_comment ) { 2489 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2490 } 2478 2491 2479 2492 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.