Skip to:
Content

bbPress.org

Changeset 7124


Ignore:
Timestamp:
08/12/2020 02:39:27 PM (16 months ago)
Author:
johnjamesjacoby
Message:

Content: add support for wp_filter_content_tags() in WordPress 5.5.

This commit removes some deprecated function notices, while also adding ongoing support for filtered content tags.

In branches/2.6, for 2.6.6.

See #3384.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/core/filters.php

    r6919 r7124  
    191191} else {
    192192
    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    }
    196207
    197208    // Revisions
Note: See TracChangeset for help on using the changeset viewer.