Index: class.wp-scripts.php
===================================================================
--- class.wp-scripts.php	(revision 35735)
+++ class.wp-scripts.php	(working copy)
@@ -83,6 +83,15 @@
 	 * @return bool|string|void
 	 */
 	public function print_extra_script( $handle, $echo = true ) {
+		$scripts = $this->get_data( $handle, 'after' );
+		if($scripts){
+			foreach($scripts as $script){
+				echo "<script type='text/javascript'>\n"; // CDATA and type='text/javascript' is not needed for HTML 5
+					echo "$script\n";
+				echo "</script>\n";	
+			}	
+		}		
+
 		if ( !$output = $this->get_data( $handle, 'data' ) )
 			return;
 
@@ -203,6 +212,21 @@
 		return true;
 	}
 
+	public function add_inline_script( $handle, $code ) {
+		if ( ! $code ) {
+			return false;
+		}
+
+		$after = $this->get_data( $handle, 'after' );
+		if ( ! $after ) {
+			$after = array();
+		}
+
+		$after[] = $code;
+
+		return $this->add_data( $handle, 'after', $after );
+	}
+
 	/**
 	 * Localizes a script, only if the script has already been added
 	 *
