diff options
Diffstat (limited to 'plugins/jetpack/modules/related-posts/class.related-posts-customize.php')
-rw-r--r-- | plugins/jetpack/modules/related-posts/class.related-posts-customize.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/related-posts/class.related-posts-customize.php b/plugins/jetpack/modules/related-posts/class.related-posts-customize.php index 8f15ca69..c6dd4788 100644 --- a/plugins/jetpack/modules/related-posts/class.related-posts-customize.php +++ b/plugins/jetpack/modules/related-posts/class.related-posts-customize.php @@ -1,5 +1,7 @@ <?php +use Automattic\Jetpack\Assets; + // Exit if file is accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; @@ -268,7 +270,7 @@ class Jetpack_Related_Posts_Customize { function customize_controls_enqueue_scripts() { wp_enqueue_script( 'jetpack_related-posts-customizer', - Jetpack::get_file_url_for_environment( + Assets::get_file_url_for_environment( '_inc/build/related-posts/related-posts-customizer.min.js', 'modules/related-posts/related-posts-customizer.js' ), @@ -297,4 +299,4 @@ class Jetpack_Message_Control extends WP_Customize_Control { } // class end // Initialize controls -new Jetpack_Related_Posts_Customize; +new Jetpack_Related_Posts_Customize(); |