Changeset 54546 for branches/3.7/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:39:41 PM (2 years ago)
- Location:
- branches/3.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525,54527,54529,54541
- Property svn:mergeinfo changed
-
branches/3.7/src
- Property svn:mergeinfo changed
/trunk/src merged: 54521-54523,54525,54527,54529,54541
- Property svn:mergeinfo changed
-
branches/3.7/src/wp-includes/comment.php
r25868 r54546 1509 1509 return 0; 1510 1510 1511 $filter_comment = false; 1512 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 1513 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 1514 } 1515 1516 if ( $filter_comment ) { 1517 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 1518 } 1519 1511 1520 // Escape data pulled from DB. 1512 1521 $comment = wp_slash($comment); … … 1518 1527 1519 1528 $commentarr = wp_filter_comment( $commentarr ); 1529 1530 if ( $filter_comment ) { 1531 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 1532 } 1520 1533 1521 1534 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.