#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 (5)
#1
@
5 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
#3
follow-up:
↓ 4
@
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
@
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.
Note: See
TracTickets for help on using
tickets.
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.