Changeset 54551 for branches/4.0/src/wp-includes/comment.php
- Timestamp:
- 10/17/2022 05:49:25 PM (2 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
- Property svn:mergeinfo changed
/trunk merged: 54521-54523,54525,54527,54529,54541
- Property svn:mergeinfo changed
-
branches/4.0/src/wp-includes/comment.php
r29469 r54551 1917 1917 return 0; 1918 1918 } 1919 1920 $filter_comment = false; 1921 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 1922 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] : 0, 'unfiltered_html' ); 1923 } 1924 1925 if ( $filter_comment ) { 1926 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 1927 } 1928 1919 1929 // Escape data pulled from DB. 1920 1930 $comment = wp_slash($comment); … … 1926 1936 1927 1937 $commentarr = wp_filter_comment( $commentarr ); 1938 1939 if ( $filter_comment ) { 1940 remove_filter( 'pre_comment_content', 'wp_filter_kses' ); 1941 } 1928 1942 1929 1943 // Now extract the merged array.
Note: See TracChangeset
for help on using the changeset viewer.