Deprecated Function _admin_bar_bump_cb Usage in class-amp-theme-support.php
-
I am currently experiencing an issue with the AMP plugin on my WordPress website. The error logs indicate that the plugin is using a deprecated WordPress function, which is causing compatibility warnings. Below are the details of the issue:
Deprecated: Function _admin_bar_bump_cb is deprecated since version 6.4.0! Use wp_enqueue_admin_bar_bump_styles instead. in /wp-includes/functions.php on line 6085Details:
- Plugin File:
class-amp-theme-support.php - Function in Question:
_admin_bar_bump_cb - Recommended Replacement:
wp_enqueue_admin_bar_bump_styles - WordPress Version: 6.4.0
- AMP Plugin Version: 2.5.4
Description:
Upon reviewing the plugin files, I located the usage of the deprecated function
_admin_bar_bump_cbwithin theclass-amp-theme-support.phpfile. This deprecated function has been replaced bywp_enqueue_admin_bar_bump_stylesin WordPress version 6.4.0. Continuing to use the deprecated function may lead to further compatibility issues and warnings.Request:
Could you please update the AMP plugin to replace the deprecated
_admin_bar_bump_cbfunction with the recommendedwp_enqueue_admin_bar_bump_stylesfunction? This update will help ensure compatibility with the latest WordPress version and prevent potential issues for users. - Plugin File:
The topic ‘Deprecated Function _admin_bar_bump_cb Usage in class-amp-theme-support.php’ is closed to new replies.