#7640 closed defect (bug) (fixed)
Notices due to Jetpack Stats direct inclusion
Reported by: | dd32 | Owned by: | akirk |
---|---|---|---|
Milestone: | Priority: | low | |
Component: | Translate Site & Plugins | Keywords: | |
Cc: |
Description
E_USER_NOTICE: Function Automattic\Jetpack\Stats\Tracking_Pixel::add_to_footer is <strong>deprecated</strong> since version 0.6.0 with no alternative available.
The above is being triggered on Translate due to Jetpack stats updating the way it's loaded.
References:
plugins/wporg-gp-customizations/inc/class-plugin.php: add_action( 'gp_footer', array( 'Automattic\Jetpack\Stats\Tracking_Pixel', 'add_to_footer' ), 101 ); plugins/wporg-gp-playground/inc/routes/class-route.php: \Automattic\Jetpack\Stats\Tracking_Pixel::add_to_footer();
Change History (3)
#3
@
4 months ago
Thanks @dd32. It can be verified by searching the HTML source of the respective pages for jetpack-stats-js-after
and clickTrackerInit
:
- Any page on translate.wordpress.org
- A Translate Live page such as https://translate.wordpress.org/projects/wp-plugins/friends/dev/de/default/playground/
In both instances the code is loaded.
Note: See
TracTickets for help on using
tickets.
@akirk could you take a look? I'm unsure how to test it properly.