Changeset 54571 for branches/5.0/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 06:13:25 PM (3 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/5.0/src/wp-includes/comment.php
r44844 r54571 2184 2184 } 2185 2185 2186 $filter_comment = false; 2187 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2188 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2189 } 2190 2191 if ( $filter_comment ) { 2192 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2193 } 2194 2186 2195 // Escape data pulled from DB. 2187 2196 $comment = wp_slash($comment); … … 2193 2202 2194 2203 $commentarr = wp_filter_comment( $commentarr ); 2204 2205 if ( $filter_comment ) { 2206 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2207 } 2195 2208 2196 2209 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.