Changeset 54557 for branches/4.3/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:59:19 PM (3 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525-54527,54529-54530,54541
- Property svn:mergeinfo changed
-
branches/4.3/src/wp-includes/comment.php
r33223 r54557 2519 2519 } 2520 2520 2521 $filter_comment = false; 2522 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2523 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2524 } 2525 2526 if ( $filter_comment ) { 2527 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2528 } 2529 2521 2530 // Escape data pulled from DB. 2522 2531 $comment = wp_slash($comment); … … 2528 2537 2529 2538 $commentarr = wp_filter_comment( $commentarr ); 2539 2540 if ( $filter_comment ) { 2541 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2542 } 2530 2543 2531 2544 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.