Changeset 54558 for branches/4.4/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 06:00:49 PM (11 months ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525-54527,54529-54530,54541
- Property svn:mergeinfo changed
-
branches/4.4/src/wp-includes/comment.php
r44850 r54558 1909 1909 } 1910 1910 1911 $filter_comment = false; 1912 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 1913 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 1914 } 1915 1916 if ( $filter_comment ) { 1917 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 1918 } 1919 1911 1920 // Escape data pulled from DB. 1912 1921 $comment = wp_slash($comment); … … 1918 1927 1919 1928 $commentarr = wp_filter_comment( $commentarr ); 1929 1930 if ( $filter_comment ) { 1931 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 1932 } 1920 1933 1921 1934 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.