#50830 closed defect (bug) (invalid)
Deprecated: add_option_whitelist is deprecated since version 5.5.0
| Reported by: | samperrow | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: | ui |
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)
#3
follow-up:
↓ 4
@
6 years ago
- Component Options, Meta APIs → 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
@
6 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.