diff --git a/src/wp-includes/class.wp-scripts.php b/src/wp-includes/class.wp-scripts.php
index af89f77acc..b0077a28a2 100644
--- a/src/wp-includes/class.wp-scripts.php
+++ b/src/wp-includes/class.wp-scripts.php
@@ -138,10 +138,24 @@ class WP_Scripts extends WP_Dependencies {
if ( ! $src )
return true;
- if ( $this->do_concat )
- $this->print_html .= "\n";
- else
- echo "\n";
+ $tag = "\n";
+
+ /**
+ * Filter the HTML script tag of an enqueued script.
+ *
+ * @since 4.1.0
+ *
+ * @param string $tag The `