WordPress 6.0 upgrade caused my custom function to stop working

Can’t see anything deprecated, but I have spotted these: category_name expects (confusingly) the category slug, so the value should (most likely) be provider-news and not Provider News If you’re using setup_postdata it’s best to also manually set the global $post too to ensure interoperability of template functions – just put global $post; inside the start … Read more

Is this hook really deprecated? ( manage_{$taxonomy}_custom_column )

manage_{$taxonomy}_custom_column is a dynamic hook, so until you are using a proper value for $taxonomy like post_tag, it would work perfectly. Adam Brown page tells it as deprecated because it looks for exact match, while there is a change in the files so the current hook being used are manage_{$this->screen->taxonomy}_custom_column or manage_{$screen->taxonomy}_custom_column which accepts the … Read more

wp_get_http has been deprecated. Use WP_Http instead

WP_Http is a: Core class used for managing HTTP transports and making HTTP requests. so it should most likely be this link: https://developer.wordpress.org/reference/classes/wp_http/ instead of: https://developer.wordpress.org/reference/functions/WP_Http that redirects you to: https://developer.wordpress.org/reference/functions/wp_http_supports/ Then there are wrappers like wp_remote_get(), wp_remote_post(), wp_safe_remote_get(), wp_safe_remote_post(), wp_remote_retrieve_response_code(), download_url(), … etc, that makes it easier to use. Check out e.g. the HTTP … Read more

wp_create_category deprecated?

You are most probably trying to use wp_create_category() on the front end, which will lead to the fatal error. wp_create_category() is not available on the front end, only backend. You should hook your function to at least admin_init where wp_create_category() is available. Just a note, looking at the source code, wp_create_category() uses category_exists() which is … Read more

WordPress core code contains things marked as deprecated by… WordPress?

Line 3846 in wp-includes/functions.php is in a function named _deprecated_function(), which warns about the use of deprecated functions. I did a quick search of my copy of 4.9.4 core and didn’t find any instances of wpdb->escape() or get_current_site_name(), the two functions you’re actually being warned about. Most likely, the deprecated functions are in a plugin … Read more