Changeset 54556 for branches/5.5/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:58:36 PM (2 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/5.5/src/wp-includes/comment.php
r48752 r54556 2457 2457 } 2458 2458 2459 $filter_comment = false; 2460 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2461 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2462 } 2463 2464 if ( $filter_comment ) { 2465 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2466 } 2467 2459 2468 // Escape data pulled from DB. 2460 2469 $comment = wp_slash( $comment ); … … 2466 2475 2467 2476 $commentarr = wp_filter_comment( $commentarr ); 2477 2478 if ( $filter_comment ) { 2479 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2480 } 2468 2481 2469 2482 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.