-
Notifications
You must be signed in to change notification settings - Fork 802
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 <[email protected]>
- Loading branch information
1 parent
0dec4ca
commit f8c3448
Showing
5 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
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
4 changes: 4 additions & 0 deletions
4
projects/packages/jetpack-mu-wpcom/changelog/add-wpcom-simple-odyssey-stats
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,4 @@ | ||
Significance: minor | ||
Type: added | ||
|
||
Add Odyssey Stats to wpcom Simple Site |
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
...s/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' ) ); | ||
} |
5 changes: 5 additions & 0 deletions
5
projects/plugins/mu-wpcom-plugin/changelog/add-wpcom-simple-odyssey-stats
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,5 @@ | ||
Significance: patch | ||
Type: changed | ||
Comment: Updated composer.lock. | ||
|
||
|