Changeset 54559 for branches/5.4/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 06:01:26 PM (2 years ago)
- Location:
- branches/5.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/5.4/src/wp-includes/comment.php
r47888 r54559 2338 2338 } 2339 2339 2340 $filter_comment = false; 2341 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2342 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2343 } 2344 2345 if ( $filter_comment ) { 2346 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2347 } 2348 2340 2349 // Escape data pulled from DB. 2341 2350 $comment = wp_slash( $comment ); … … 2347 2356 2348 2357 $commentarr = wp_filter_comment( $commentarr ); 2358 2359 if ( $filter_comment ) { 2360 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2361 } 2349 2362 2350 2363 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.