Changeset 54550 for branches/3.9/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:46:53 PM (2 years ago)
- Location:
- branches/3.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525,54527,54529,54541
- Property svn:mergeinfo changed
-
branches/3.9/src/wp-includes/comment.php
r27300 r54550 1816 1816 return 0; 1817 1817 1818 $filter_comment = false; 1819 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 1820 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 1821 } 1822 1823 if ( $filter_comment ) { 1824 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 1825 } 1826 1818 1827 // Escape data pulled from DB. 1819 1828 $comment = wp_slash($comment); … … 1825 1834 1826 1835 $commentarr = wp_filter_comment( $commentarr ); 1836 1837 if ( $filter_comment ) { 1838 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 1839 } 1827 1840 1828 1841 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.