Skip to:
Content

BuddyPress.org

Ticket #8709: 8709-disallowed-keys-back-comp.patch

File 8709-disallowed-keys-back-comp.patch, 568 bytes (added by oztaser, 2 years ago)
  • src/bp-core/bp-core-moderation.php

    diff --git src/bp-core/bp-core-moderation.php src/bp-core/bp-core-moderation.php
    index 16e3a4ebd..a5fec7f10 100644
    function bp_core_check_for_disallowed_keys( $user_id = 0, $title = '', $content 
    240240        // Get the moderation keys.
    241241        $disallowed = get_option( 'disallowed_keys' );
    242242
    243         // Support for WP < 5.5.
    244         if ( false === $disallowed ) {
    245                 $disallowed = get_option( 'blacklist_keys' );
    246         }
    247 
    248243        $disallowed = trim( $disallowed );
    249244
    250245        // Bail if disallowed list is empty.