Skip to:
Content

BuddyPress.org

Opened 4 years ago

Closed 4 years ago

#8338 closed defect (bug) (fixed)

`blacklist_keys` option name has been deprecated in WP 5.5

Reported by: imath's profile imath Owned by: imath's profile 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 4 years ago.

Download all attachments as: .zip

Change History (3)

@imath
4 years ago

#1 @boonebgorges
4 years ago

  • Keywords commit added

Looks good to me.

#2 @imath
4 years 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.