Hi Scott,
That’s indeed a bug that was introduced in the latest release, and will happen on sites using the VideoPress feature; we inadvertently enabled the full Stats feature in an effort to enable access to video play stats.
We’ll fix this in the next release (you can follow our progress on this in this GitHub issue), but until then you can force disable the Stats module, and ensure it will not be enabled again, by adding the following code snippet to your site using a functionality plugin:
// Deactivate the Stats module.
add_filter(
'jetpack_active_modules',
function ( $modules ) {
$stats_index = array_search( 'stats', $modules, true );
if ( false !== $stats_index ) {
unset( $modules[ $stats_index ] );
}
return $modules;
},
11
);
// Remove the Stats module from the list of available modules.
add_filter(
'jetpack_get_available_modules',
function ( $modules ) {
unset( $modules['stats'] );
return $modules;
},
11
);
Sorry for the trouble!
Thread Starter
Scott
(@midipedalboards)
Thank you for the snippet.
Thread Starter
Scott
(@midipedalboards)
@jeherve
I’ve followed the github and see it’s been merged into another. So I signed in and gave my $0.02 worth. I’m probably not going to be popular there!
But thank you again for the snippet.