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