Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#50830 closed defect (bug) (invalid)

Deprecated: add_option_whitelist is deprecated since version 5.5.0

Reported by: samperrow's profile 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 (5)

#1 @whyisjake
5 years 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
5 years ago

  • Component changed from General to Options, Meta APIs

#3 follow-up: @samperrow
5 years 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
5 years 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.

#5 @dschlaba
4 years ago

After receiving this error, looking into the cause and finding this ticket I would like to say the above exchange has brighten my day!

Note: See TracTickets for help on using tickets.