| @@ 161-164 (lines=4) @@ | ||
| 158 | true |
|
| 159 | ); |
|
| 160 | ||
| 161 | if ( ! Jetpack::is_development_mode() && Jetpack::is_active() ) { |
|
| 162 | // Required for Analytics. |
|
| 163 | wp_enqueue_script( 'jp-tracks', '//stats.wp.com/w.js', array(), gmdate( 'YW' ), true ); |
|
| 164 | } |
|
| 165 | ||
| 166 | // Add objects to be passed to the initial state of the app. |
|
| 167 | wp_localize_script( 'react-plugin', 'Initial_State', $this->get_initial_state() ); |
|
| @@ 605-607 (lines=3) @@ | ||
| 602 | } |
|
| 603 | ||
| 604 | // Required for Analytics. See _inc/lib/admin-pages/class.jetpack-admin-page.php. |
|
| 605 | if ( ! Jetpack::is_development_mode() && Jetpack::is_active() ) { |
|
| 606 | wp_enqueue_script( 'jp-tracks', '//stats.wp.com/w.js', array(), gmdate( 'YW' ), true ); |
|
| 607 | } |
|
| 608 | ||
| 609 | $rtl = is_rtl() ? '.rtl' : ''; |
|
| 610 | $beta = Constants::is_true( 'JETPACK_BETA_BLOCKS' ) ? '-beta' : ''; |
|