Changeset 54570 for branches/5.1/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 06:11:58 PM (2 years ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/5.1/src/wp-includes/comment.php
r47918 r54570 2284 2284 } 2285 2285 2286 $filter_comment = false; 2287 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2288 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2289 } 2290 2291 if ( $filter_comment ) { 2292 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2293 } 2294 2286 2295 // Escape data pulled from DB. 2287 2296 $comment = wp_slash( $comment ); … … 2293 2302 2294 2303 $commentarr = wp_filter_comment( $commentarr ); 2304 2305 if ( $filter_comment ) { 2306 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2307 } 2295 2308 2296 2309 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.