Removes WordPress polyfills for core functions < 2.8.0
Important Note: Known deprecation warnings will be thrown for WordPress 6.1.1 and newer PHP versions:
PHP Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
PHP Deprecated: Calling get_class() without arguments is deprecated
Testing WordPress 6.1.1 with PHP 8.0 will not display these deprecations.
Closes #1
How to test the Change
Environments
WordPress core version 6.5.4
WordPress core version 6.1.1
Theme Twenty Twenty-Four
Theme Twenty Twenty-One
Acceptance
Shortcode [mailchimpsf_widget] works as expected
Widget works as expected
Changelog Entry
Added - compatibility to WordPress 6.5.4
Deprecated - support for WordPress < 6.1.1
Removed - polyfills for WordPress < 2.8.0
Removed - deprecated jQuery scrollTo
Description of the Change
window.scrollTo
. Seeoptions.behavior
support: https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo#browser_compatibilityImportant Note: Known deprecation warnings will be thrown for WordPress 6.1.1 and newer PHP versions:
PHP Deprecated: Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
PHP Deprecated: Calling get_class() without arguments is deprecated
Testing WordPress 6.1.1 with PHP 8.0 will not display these deprecations.
Closes #1
How to test the Change
Environments
Acceptance
[mailchimpsf_widget]
works as expectedChangelog Entry
Credits
@nateconley
Checklist: