From 130b726260c377e6139c5dcd59b682d013b1e307 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Wed, 1 Aug 2018 10:52:44 -0400 Subject: [PATCH] Framework: Specify missing wp-url dependencies --- lib/client-assets.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index bcbda49b6f9ad..3ce6fb7bce21c 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -307,11 +307,12 @@ function gutenberg_register_scripts_and_styles() { 'wp-deprecated', 'wp-dom', 'wp-element', - 'wp-html-entities', 'wp-hooks', + 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', + 'wp-url', ), filemtime( gutenberg_dir_path() . 'build/components/index.js' ), true @@ -357,18 +358,19 @@ function gutenberg_register_scripts_and_styles() { array( 'editor', 'lodash', + 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', - 'wp-element', 'wp-editor', + 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', + 'wp-url', 'wp-viewport', - 'wp-api-fetch', ), filemtime( gutenberg_dir_path() . 'build/core-blocks/index.js' ), true @@ -453,6 +455,10 @@ function gutenberg_register_scripts_and_styles() { 'wp-editor', gutenberg_url( 'build/editor/index.js' ), array( + 'lodash', + 'tinymce-latest-lists', + 'tinymce-latest-paste', + 'tinymce-latest-table', 'wp-a11y', 'wp-api-fetch', 'wp-blob', @@ -471,14 +477,10 @@ function gutenberg_register_scripts_and_styles() { 'wp-is-shallow-equal', 'wp-keycodes', 'wp-nux', + 'wp-tinymce', 'wp-url', 'wp-viewport', 'wp-wordcount', - 'lodash', - 'wp-tinymce', - 'tinymce-latest-lists', - 'tinymce-latest-paste', - 'tinymce-latest-table', ), filemtime( gutenberg_dir_path() . 'build/editor/index.js' ) );