Ticket #25247: 25247_dependencies2.diff
File 25247_dependencies2.diff, 1014 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/class.wp-dependencies.php
100 100 if ( !in_array($handle, $this->done, true) && isset($this->registered[$handle]) ) { 101 101 /* 102 102 * Attempt to process the item. If successful, 103 * add the handle to the done array. 104 * 105 * Unset the item from the to_do array. 103 * add the handle to the done array and unset the item from the to_do array. 106 104 */ 107 if ( $this->do_item( $handle, $group ) ) 105 if ( $this->do_item( $handle, $group ) ) { 108 106 $this->done[] = $handle; 109 110 unset( $this->to_do[$key] );107 unset( $this->to_do[$key] ); 108 } 111 109 } 112 110 } 113 111 … … 385 383 $group = (int) $group; 386 384 387 385 if ( $recursion ) 388 $ group = min($this->group, $group);386 $this->group = $group = min($this->group, $group); 389 387 else 390 388 $this->group = $group; 391 389