Changeset 54547 for branches/3.8/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:43:54 PM (2 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525,54527,54529,54541
- Property svn:mergeinfo changed
-
branches/3.8/src/wp-includes/comment.php
r26492 r54547 1833 1833 return 0; 1834 1834 1835 $filter_comment = false; 1836 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 1837 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 1838 } 1839 1840 if ( $filter_comment ) { 1841 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 1842 } 1843 1835 1844 // Escape data pulled from DB. 1836 1845 $comment = wp_slash($comment); … … 1842 1851 1843 1852 $commentarr = wp_filter_comment( $commentarr ); 1853 1854 if ( $filter_comment ) { 1855 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 1856 } 1844 1857 1845 1858 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.