From 51e2bc173d34279ea77f1ea0cc0f86c20e552b9a Mon Sep 17 00:00:00 2001 From: Ella Iseulde Van Dorpe Date: Thu, 16 Jul 2015 12:40:51 +0000 Subject: [PATCH] Editor: word count: remove redundant script enqueuing It is now a dependency of `post`. Part props johnjamesjacoby. Fixes #31766. See #30966. git-svn-id: https://develop.svn.wordpress.org/trunk@33295 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index fd2f007686..ef9e8576e7 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -761,8 +761,6 @@ final class _WP_Editors { * @static */ public static function enqueue_scripts() { - wp_enqueue_script('word-count'); - if ( self::$has_tinymce ) wp_enqueue_script('editor');