Changeset 54563 for branches/5.2/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 06:08:00 PM (4 years ago)
- Location:
- branches/5.2
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
- Property svn:mergeinfo changed
/trunk merged: 54521-54530,54541
- Property svn:mergeinfo changed
-
branches/5.2/src/wp-includes/comment.php
r47917 r54563 2307 2307 } 2308 2308 2309 $filter_comment = false; 2310 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2311 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 2312 } 2313 2314 if ( $filter_comment ) { 2315 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 2316 } 2317 2309 2318 // Escape data pulled from DB. 2310 2319 $comment = wp_slash( $comment ); … … 2316 2325 2317 2326 $commentarr = wp_filter_comment( $commentarr ); 2327 2328 if ( $filter_comment ) { 2329 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 2330 } 2318 2331 2319 2332 // Now extract the merged array.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)