diff --git a/src/wp-includes/class.wp-dependencies.php b/src/wp-includes/class.wp-dependencies.php
index 9ed26568ed..a05dc14b00 100644
|
a
|
b
|
class WP_Dependencies { |
| 83 | 83 | */ |
| 84 | 84 | private $all_queued_deps; |
| 85 | 85 | |
| | 86 | private $all_seen_deps; |
| | 87 | |
| 86 | 88 | /** |
| 87 | 89 | * Processes the items and dependencies. |
| 88 | 90 | * |
| … |
… |
class WP_Dependencies { |
| 102 | 104 | * If nothing is passed, print the queue. If a string is passed, |
| 103 | 105 | * print that item. If an array is passed, print those items. |
| 104 | 106 | */ |
| 105 | | $handles = false === $handles ? $this->queue : (array) $handles; |
| | 107 | $handles = false === $handles ? $this->queue : (array) $handles; |
| | 108 | $this->all_seen_deps = array(); |
| 106 | 109 | $this->all_deps( $handles ); |
| 107 | 110 | |
| 108 | 111 | foreach ( $this->to_do as $key => $handle ) { |
| … |
… |
class WP_Dependencies { |
| 167 | 170 | $handle = $handle_parts[0]; |
| 168 | 171 | $queued = in_array( $handle, $this->to_do, true ); |
| 169 | 172 | |
| | 173 | if ( in_array( $handle, $this->all_seen_deps, true ) ) { |
| | 174 | continue; |
| | 175 | } |
| | 176 | $this->all_seen_deps[] = $handle; |
| | 177 | |
| 170 | 178 | if ( in_array( $handle, $this->done, true ) ) { // Already done. |
| 171 | 179 | continue; |
| 172 | 180 | } |