Skip to:
Content

BuddyPress.org

Opened 2 weeks ago

Closed 11 days ago

#8338 closed defect (bug) (fixed)

`blacklist_keys` option name has been deprecated in WP 5.5

Reported by: imath Owned by: imath
Milestone: 6.2.0 Priority: normal
Severity: normal Version: 2.6.0
Component: Core Keywords: has-patch commit
Cc:

Description

As a result, our PHPunit tests are failing each time there are run against WordPress trunk due to the deprecated notice.

The attached patch is fixing the issue making sure to use the new option name (disallowed_keys) if the site's installed WordPress version is >= WP 5.5.

Attachments (1)

8338.patch (1.1 KB) - added by imath 2 weeks ago.

Download all attachments as: .zip

Change History (3)

@imath
2 weeks ago

#1 @boonebgorges
2 weeks ago

  • Keywords commit added

Looks good to me.

#2 @imath
11 days ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 12695:

Core: use the right option name for moderation disallowed keys

Since WordPress 5.5 the blacklist_keys option name has been deprecated in favor of the disallowed_keys one. Depending on the installed WordPress version, this commit makes sure we use the right option name.

Props boonebgorges

Fixes #8338 (branch 6.0)

Note: See TracTickets for help on using tickets.