diff --git a/wp-includes/class.wp-dependencies.php b/wp-includes/class.wp-dependencies.php
index 0348418..bf291bd 100644
a
|
b
|
class _WP_Dependency { |
487 | 487 | @list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args(); |
488 | 488 | if ( ! is_array($this->deps) ) |
489 | 489 | $this->deps = array(); |
| 490 | |
| 491 | /** |
| 492 | * If the script has a set dependency of itself we get a recursion fatal error. |
| 493 | */ |
| 494 | foreach( $this->deps as $k => $dep ) { |
| 495 | if( $this->handle === $dep ) { |
| 496 | unset( $this->deps[$k] ); |
| 497 | } |
| 498 | } |
490 | 499 | } |
491 | 500 | |
492 | 501 | /** |