Changeset 7124
- Timestamp:
- 08/12/2020 02:39:27 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/core/filters.php
r6919 r7124 191 191 } else { 192 192 193 // Responsive images 194 add_filter( 'bbp_get_reply_content', 'wp_make_content_images_responsive', 60 ); 195 add_filter( 'bbp_get_topic_content', 'wp_make_content_images_responsive', 60 ); 193 // WordPress 5.5.x and above 194 if ( function_exists( 'wp_filter_content_tags' ) ) { 195 196 // Responsive images 197 add_filter( 'bbp_get_reply_content', 'wp_filter_content_tags', 60 ); 198 add_filter( 'bbp_get_topic_content', 'wp_filter_content_tags', 60 ); 199 200 // WordPress 5.4.x and below 201 } else { 202 203 // Responsive images 204 add_filter( 'bbp_get_reply_content', 'wp_make_content_images_responsive', 60 ); 205 add_filter( 'bbp_get_topic_content', 'wp_make_content_images_responsive', 60 ); 206 } 196 207 197 208 // Revisions
Note: See TracChangeset
for help on using the changeset viewer.