Ticket #25247: 25247_dependencies.diff
File 25247_dependencies.diff, 1.4 KB (added by , 10 years ago) |
---|
-
src/wp-includes/class.wp-dependencies.php
105 105 * 106 106 * Example: The extending class WP_Scripts is used to register 'scriptaculous' as a set of registered handles: 107 107 * <code>add( 'scriptaculous', false, array( 'scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls' ) );</code> 108 *109 * The src property is false.110 108 */ 111 if ( ! $this->registered[$handle]->src ) {112 $this->done[] = $handle;113 continue;114 }115 109 116 110 /* 117 * Attempt to process the item. If successful, 118 * add the handle to the done array. 119 * 120 * Unset the item from the to_do array. 111 * If the src property is false, 112 * or the item is processed successfully, 113 * add the handle to the done array and unset the item from the to_do array. 121 114 */ 122 if ( $this->do_item( $handle, $group ) )115 if ( ! $this->registered[$handle]->src || $this->do_item( $handle, $group ) ) { 123 116 $this->done[] = $handle; 124 125 unset( $this->to_do[$key] );117 unset( $this->to_do[$key] ); 118 } 126 119 } 127 120 } 128 121 … … 400 393 $group = (int) $group; 401 394 402 395 if ( $recursion ) 403 $ group = min($this->group, $group);396 $this->group = $group = min($this->group, $group); 404 397 else 405 398 $this->group = $group; 406 399