From cf6adef68f1788a9cf3a577884a9596d48063eb5 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 16 Jan 2015 01:11:23 +0000 Subject: [PATCH] Revert [31032], this did not get much love. See #25277. Built from https://develop.svn.wordpress.org/trunk@31189 git-svn-id: http://core.svn.wordpress.org/trunk@31170 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class.wp-scripts.php | 13 +++---------- wp-includes/script-loader.php | 15 +-------------- wp-includes/version.php | 2 +- 3 files changed, 5 insertions(+), 25 deletions(-) diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index 97c49d30dc..ae0148ee8d 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -27,7 +27,6 @@ class WP_Scripts extends WP_Dependencies { public $print_html = ''; public $print_code = ''; public $ext_handles = ''; - public $print_after_html = ''; public $ext_version = ''; public $default_dirs; @@ -68,14 +67,12 @@ class WP_Scripts extends WP_Dependencies { return $this->print_extra_script( $handle, $echo ); } - public function print_extra_script( $handle, $echo = true, $key = 'data' ) { - if ( ! $output = $this->get_data( $handle, $key ) ) { + public function print_extra_script( $handle, $echo = true ) { + if ( !$output = $this->get_data( $handle, 'data' ) ) return; - } - if ( ! $echo ) { + if ( !$echo ) return $output; - } echo "\n"; } - if ( ! empty( $wp_scripts->print_html ) ) { + if ( !empty($wp_scripts->print_html) ) echo $wp_scripts->print_html; - } - - if ( ! empty( $wp_scripts->print_after_html ) ) { - if ( $wp_scripts->do_concat ) { - echo "\n"; - } else { - echo $wp_scripts->print_after_html; - } - } } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 23a19c297c..78b846ca3e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31188'; +$wp_version = '4.2-alpha-31189'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.