From 346e85671717d98edbe7698b579c49fff4f41385 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Fri, 29 Jan 2021 16:07:37 +0100 Subject: [PATCH] Remove live reload integration --- lib/client-assets.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index 4fb94d05b959c1..890ce6cccab175 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -447,24 +447,6 @@ function gutenberg_register_packages_styles( $styles ) { } add_action( 'wp_default_styles', 'gutenberg_register_packages_styles' ); -/** - * Registers common scripts and styles to be used as dependencies of the editor - * and plugins. - * - * @since 0.1.0 - */ -function gutenberg_enqueue_block_editor_assets() { - if ( defined( 'GUTENBERG_LIVE_RELOAD' ) && GUTENBERG_LIVE_RELOAD ) { - $live_reload_url = ( GUTENBERG_LIVE_RELOAD === true ) ? 'http://localhost:35729/livereload.js' : GUTENBERG_LIVE_RELOAD; - - wp_enqueue_script( - 'gutenberg-live-reload', - $live_reload_url - ); - } -} -add_action( 'enqueue_block_editor_assets', 'gutenberg_enqueue_block_editor_assets' ); - /** * Retrieves a unique and reasonably short and human-friendly filename for a * vendor script based on a URL and the script handle.