summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/widgets/google-translate.php')
-rw-r--r--plugins/jetpack/modules/widgets/google-translate.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/jetpack/modules/widgets/google-translate.php b/plugins/jetpack/modules/widgets/google-translate.php
index 241fb8ed..87742317 100644
--- a/plugins/jetpack/modules/widgets/google-translate.php
+++ b/plugins/jetpack/modules/widgets/google-translate.php
@@ -1,11 +1,14 @@
<?php
+
+use Automattic\Jetpack\Assets;
+
/**
* Plugin Name: Google Translate Widget for WordPress.com
- * Plugin URI: http://automattic.com
+ * Plugin URI: https://automattic.com
* Description: Add a widget for automatic translation
* Author: Artur Piszek
* Version: 0.1
- * Author URI: http://automattic.com
+ * Author URI: https://automattic.com
* Text Domain: jetpack
*/
if ( ! defined( 'ABSPATH' ) ) {
@@ -46,7 +49,7 @@ class Jetpack_Google_Translate_Widget extends WP_Widget {
public function enqueue_scripts() {
wp_register_script(
'google-translate-init',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/widgets/google-translate/google-translate.min.js',
'modules/widgets/google-translate/google-translate.js'
)