Closed
Description
Bug Description
The call to _admin_bar_bump_cb
at https://github.com/ampproject/amp-wp/blob/2c4df9e1dec74c798e11f06cd02e470f1f988705/includes/class-amp-theme-support.php#L1226C9-L1226C9 causes PHP Deprecation notices to appear when using the AMP plugin with WordPress 6.4+.
The entire notice is:
PHP Deprecated: Function _admin_bar_bump_cb is deprecated since version 6.4.0! Use wp_enqueue_admin_bar_bump_styles instead. in /var/www/html/wp-includes/functions.php on line 6032
It seems using wp_enqueue_admin_bar_bump_styles
instead will fix the issue, when the version of WordPress is equal-to/above 6.4.0
.
Expected Behaviour
No deprecation errors appear in the WordPress debug log/elsewhere when using the AMP plugin with WordPress 6.4+.
Screenshots
PHP Version
7.4
Plugin Version
2.4.2
AMP plugin template mode
Standard
WordPress Version
6.4.0 (Nightly)
Site Health
No response
Gutenberg Version
No response
OS(s) Affected
No response
Browser(s) Affected
No response
Device(s) Affected
No response
Acceptance Criteria
No response
Implementation Brief
No response
QA Testing Instructions
No response
Demo
No response
Changelog Entry
No response
Metadata
Metadata
Assignees
Type
Projects
Status
QA Passed