Changeset 54552 for branches/4.1/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:53:02 PM (2 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525,54527,54529-54530,54541
- Property svn:mergeinfo changed
-
branches/4.1/src/wp-includes/comment.php
r30681 r54552 2201 2201 return 0; 2202 2202 } 2203 2204 $filter_comment = false; 2205 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2206 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2207 } 2208 2209 if ( $filter_comment ) { 2210 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2211 } 2212 2203 2213 // Escape data pulled from DB. 2204 2214 $comment = wp_slash($comment); … … 2210 2220 2211 2221 $commentarr = wp_filter_comment( $commentarr ); 2222 2223 if ( $filter_comment ) { 2224 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2225 } 2212 2226 2213 2227 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.