Changeset 54553 for branches/5.7/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:53:05 PM (2 years ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/5.7/src/wp-includes/comment.php
r50375 r54553 2462 2462 } 2463 2463 2464 $filter_comment = false; 2465 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2466 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2467 } 2468 2469 if ( $filter_comment ) { 2470 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2471 } 2472 2464 2473 // Escape data pulled from DB. 2465 2474 $comment = wp_slash( $comment ); … … 2471 2480 2472 2481 $commentarr = wp_filter_comment( $commentarr ); 2482 2483 if ( $filter_comment ) { 2484 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2485 } 2473 2486 2474 2487 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.