Changeset 54569 for branches/4.9/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 06:11:47 PM (2 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-includes/comment.php
r44845 r54569 2196 2196 } 2197 2197 2198 $filter_comment = false; 2199 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2200 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2201 } 2202 2203 if ( $filter_comment ) { 2204 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2205 } 2206 2198 2207 // Escape data pulled from DB. 2199 2208 $comment = wp_slash($comment); … … 2205 2214 2206 2215 $commentarr = wp_filter_comment( $commentarr ); 2216 2217 if ( $filter_comment ) { 2218 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2219 } 2207 2220 2208 2221 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.