-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load Odyssey Stats for simple sites (#36628)
* Load Odyssey Stats for simple sites * Changelog * Fix file name to wpcom-simple-odyssey-stats.php * Make Phan happy * Run tools/fixup-project-versions.sh to make linter happy * Add wpcom_is_nav_redesign_enabled check --------- Co-authored-by: DustyReagan <dusty@dustyreagan.com> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/8506186690
- Loading branch information
1 parent
699ae65
commit b8ec2c0
Showing
6 changed files
with
48 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...c/jetpack-mu-wpcom/src/features/wpcom-simple-odyssey-stats/wpcom-simple-odyssey-stats.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Load the Odyssey stats feature on WordPress.com Simple Site. | ||
* See https://github.com/Automattic/jetpack/tree/trunk/projects/packages/stats-admin | ||
* | ||
* @package automattic/jetpack-mu-wpcom | ||
*/ | ||
|
||
use Automattic\Jetpack\Stats_Admin\Dashboard as OdysseyStats; | ||
OdysseyStats::init(); | ||
|
||
/** | ||
* Load the Odyssey stats widget in the Dashboard. | ||
*/ | ||
if ( defined( 'JETPACK_PLUGIN_LOADER_PATH' ) ) { | ||
require_once JETPACK_PLUGIN_LOADER_PATH . '/class-jetpack-stats-dashboard-widget.php'; | ||
add_action( 'wp_dashboard_setup', array( new Jetpack_Stats_Dashboard_Widget(), 'init' ) ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters