WordPress.org

Make WordPress Core

Opened 8 days ago

Closed 8 days ago

Last modified 7 days ago

#50830 closed defect (bug) (invalid)

Deprecated: add_option_whitelist is deprecated since version 5.5.0

Reported by: samperrow Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Plugins Keywords:
Focuses: ui Cc:

Description

Minor issue, but this was the error I received when I upgraded to the "bleeding edge" 5.5 version. I am using PHP 7.4.2.

"Use add_allowed_options() instead. in /Applications/MAMP/htdocs/WordPress/wp-includes/functions.php on line 4773"

I can provide the stack trace if desired.

Change History (4)

#1 @whyisjake
8 days ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hey there @samperrow, thanks for filing this ticket.

You are correct, this is a deprecated notice. If this is stemming from a custom plugin or theme, you can update to use add_allowed_options().

You can read more about this change here.

#2 @SergeyBiryukov
8 days ago

  • Component changed from General to Options, Meta APIs

#3 follow-up: @samperrow
7 days ago

  • Component changed from Options, Meta APIs to Plugins

It's coming from the "Classic Editor" plugin, on line 339 of classic-editor.php. That's an official WP plugin, so I assume that would be in your realm?

#4 in reply to: ↑ 3 @SergeyBiryukov
7 days ago

Replying to samperrow:

It's coming from the "Classic Editor" plugin, on line 339 of classic-editor.php. That's an official WP plugin, so I assume that would be in your realm?

Thanks for the follow-up! Yes, there is already a merged PR that will be in the plugin update for WP 5.5.

Note: See TracTickets for help on using tickets.