diff --git a/projects/plugins/jetpack/changelog/update-posts-stats-link b/projects/plugins/jetpack/changelog/update-posts-stats-link new file mode 100644 index 0000000000000..01d0b28754a6d --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-posts-stats-link @@ -0,0 +1,4 @@ +Significance: minor +Type: other + +Point posts stats icon to wp-admin diff --git a/projects/plugins/jetpack/modules/stats.php b/projects/plugins/jetpack/modules/stats.php index 58afeec2a526f..eb2a2b9fd2bc8 100644 --- a/projects/plugins/jetpack/modules/stats.php +++ b/projects/plugins/jetpack/modules/stats.php @@ -1811,7 +1811,7 @@ function jetpack_stats_post_table_cell( $column, $post_id ) { esc_html__( 'No stats', 'jetpack' ) ); } else { - $stats_post_url = ! ( new Host() )->is_woa_site() && Stats_Options::get_option( 'enable_odyssey_stats' ) + $stats_post_url = 'wp-admin' === get_option( 'wpcom_admin_interface' ) ? admin_url( sprintf( 'admin.php?page=stats#!/stats/post/%d/%d', $post_id, Jetpack_Options::get_option( 'id', 0 ) ) ) : Redirect::get_url( 'calypso-stats-post',