media_buttons_context is deprecated

Was just checking the error logs on a new install of 5.4.1 and see a lot:

Got error 'PHP message: PHP Deprecated:  media_buttons_context is strongdeprecated/strong since version 3.5.0! Use media_buttons instead. in /var/www/susites/evozyne/htdocs/wp-includes/functions.php on line 5088', referer: https://evozyne.highgatewebworks.com/wp-admin/post.php?post=8action=edit

I can't find any mention of this anywhere except in an old WordPress Core discussion.

Can anyone shed some light on this?

Brad

Topic deprecation errors Wordpress

Category Web



According to the developer documentation, media_buttons_context has been deprecated since 3.5.0 in favor of media_buttons. The Warning is there to point you in the right direction to update the code to use the newer, preferred function.

I bet if you do a search of your codebase (active plugins and theme) you'll find media_buttons_context somewhere which should be updated.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.