Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Compatibility with Jetpack Stats: deprecated functions removed #18

Open
jeherve opened this issue Mar 31, 2023 · 0 comments
Open

Compatibility with Jetpack Stats: deprecated functions removed #18

jeherve opened this issue Mar 31, 2023 · 0 comments

Comments

@jeherve
Copy link

jeherve commented Mar 31, 2023

Issue Overview

In the next version of the Jetpack plugin, scheduled to be released in the beginning of May, we'll be removing a few functions that have been deprecated for a while. See the related PR for more information:
Automattic/jetpack#29780

I'm reaching out here because this plugin is relying on those deprecated functions:

public function add_hooks( bool $allowed ) {
if ( ! $allowed ) {
remove_action( 'template_redirect', 'stats_template_redirect', 1 );
remove_action( 'wp_footer', 'stats_footer', 101 );
remove_action( 'wp_head', 'stats_add_shutdown_action' );

It may consequently be best to move away from those deprecated functions. One way to go about it would be to rely on the script_loader_tag tag, as was suggested in the Pull Request above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant