Skip to:
Content

bbPress.org

Changeset 7270


Ignore:
Timestamp:
06/29/2024 04:46:37 PM (15 months ago)
Author:
johnjamesjacoby
Message:

Common: update blacklist_keys to disallow_keys

This change prevents a deprecated option notice in WordPress versions greater than 5.5.

See: #3601

In branches/2.6, for 2.6.11.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/common/functions.php

    r7264 r7270  
    843843 * @param string $title The title of the content
    844844 * @param string $content The content being posted
    845  * @param mixed  $strict  False for moderation_keys. True for blacklist_keys.
     845 * @param mixed  $strict  False for moderation_keys. True for disallow_keys.
    846846 *                        String for custom keys.
    847847 * @return bool True if test is passed, false if fail
     
    867867    if ( true === $strict ) {
    868868        $hook_name   = 'blacklist';
    869         $option_name = 'blacklist_keys';
     869        $option_name = 'disallow_keys';
    870870
    871871    // Non-strict uses WordPress "moderation" settings
Note: See TracChangeset for help on using the changeset viewer.