From c629ae31806af07b2e6ae3d260e5464a12b9ee52 Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Fri, 24 Apr 2020 14:57:07 +0000 Subject: [PATCH] Bundled Themes: Twenty Twenty remove unnecessary `$css_dependencies` variable in `twentytwenty_block_editor_styles()`. Removes the unnecessary `$css_dependencies` variable in `twentytwenty_block_editor_styles()`. Props ocean90, Dency. Fixes #49986. git-svn-id: https://develop.svn.wordpress.org/trunk@47618 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentytwenty/functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentytwenty/functions.php b/src/wp-content/themes/twentytwenty/functions.php index 47c950a44f..9835d2c21e 100644 --- a/src/wp-content/themes/twentytwenty/functions.php +++ b/src/wp-content/themes/twentytwenty/functions.php @@ -391,10 +391,8 @@ add_action( 'widgets_init', 'twentytwenty_sidebar_registration' ); */ function twentytwenty_block_editor_styles() { - $css_dependencies = array(); - // Enqueue the editor styles. - wp_enqueue_style( 'twentytwenty-block-editor-styles', get_theme_file_uri( '/assets/css/editor-style-block.css' ), $css_dependencies, wp_get_theme()->get( 'Version' ), 'all' ); + wp_enqueue_style( 'twentytwenty-block-editor-styles', get_theme_file_uri( '/assets/css/editor-style-block.css' ), array(), wp_get_theme()->get( 'Version' ), 'all' ); wp_style_add_data( 'twentytwenty-block-editor-styles', 'rtl', 'replace' ); // Add inline style from the Customizer.