diff --git a/wp-includes/class.wp-dependencies.php b/wp-includes/class.wp-dependencies.php
index 0348418..bf291bd 100644
--- a/wp-includes/class.wp-dependencies.php
+++ b/wp-includes/class.wp-dependencies.php
@@ -487,6 +487,15 @@ class _WP_Dependency {
 		@list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args();
 		if ( ! is_array($this->deps) )
 			$this->deps = array();
+
+		/**
+		 * If the script has a set dependency of itself we get a recursion fatal error.
+		 */
+		foreach( $this->deps as $k => $dep ) {
+			if( $this->handle === $dep ) {
+				unset( $this->deps[$k] );
+			}
+		}
 	}
 
 	/**
