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.