Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kangzj committed Oct 11, 2024
1 parent 599c59f commit 9f645c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/packages/stats-admin/src/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public static function init() {
*/
private function __construct() {
add_action( 'rest_api_init', array( new REST_Controller(), 'register_rest_routes' ) );
// Disable JITM assets on the Stats page.
// JITM is handled separately by Stats: https://github.com/Automattic/wp-calypso/pull/95273.
add_filter(
'jetpack_display_jitms_on_screen',
function ( $show, $screen_id ) {
Expand Down
1 change: 1 addition & 0 deletions projects/packages/stats-admin/src/class-odyssey-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function load_admin_scripts( $asset_handle, $asset_name, $options = array
'before'
);

// Config data for JITM.
wp_localize_script(
$asset_handle,
'jitm_config',
Expand Down

0 comments on commit 9f645c1

Please sign in to comment.